Y
Hacker News
new
|
ask
|
show
|
jobs
by
jimm
4317 days ago
Will it quit? A failed fork() will return -1, which is non-zero thus true in a boolean context. The while(fork()) {...} will run.
1 comments
comex
4317 days ago
But it
will
stop when fork returns 0, i.e. in the child processes, making it non-exponential.
link