Hi,
Se vad niste luminite la capatul tunelului: :))
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
silby 2002/02/18 19:15:28 PST
Modified files:
sys/kern kern_fork.c
Log:
A few misc forkbomb defenses:
- Leave 10 processes for root-only use, the previous
value of 1 was insufficient to run ps ax | more.
- Remove the printing of "proc: table full". When the table
really is full, this would flood the screen/logs, making
the problem tougher to deal with.
- Force any process trying to fork beyond its user's maximum
number of processes to sleep for .5 seconds before returning
failure. This turns 2000 rampaging fork monsters into 2000
harmlessly snoozing fork monsters.
Reviewed by: dillon, peter
MFC after: 1 week
Revision Changes Path
1.132 +5 -2 src/sys/kern/kern_fork.c
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Background: pentru cine nu stie, exista o problema cu asa-zisele
forkbombs. O simpla bucatica de cod, precum:
while(1)
fork();
duce la inundarea cu procese care se tot auto-replica. Sub consola nu
e chiar drastic, se mai poate da un CTRL-C, dar sub X... adio.
Dupa cum se spune si in commitlog, acest pathc (aplicat pe -CURRENT)
va fi aplicat si pe 4.x-STABLE peste aproximativ o saptamana.
Happy cvsuping,
Ady (@rofug.ro)
_______________________________________________________________________
| Programming in BASIC causes brain damage. |
| (Edsger Wybe Dijkstra) |
__________________________________________________________
Send 'unsubscribe rofug' to [EMAIL PROTECTED] to unsubscribe