Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
jimm
· 12y ago · 0 comments
Will it quit? A failed fork() will return -1, which is non-zero thus true in a boolean context. The while(fork()) {...} will run.
Comments
[–]
comex
12y ago
But it
will
stop when fork returns 0, i.e. in the child processes, making it non-exponential.