Or put the open (with '>>' instead of '>') and close into the loop and you can see that the numbers drop in one by one
It would have helped if you mentioned what OS you were talking about (ok, the word pseudo seem to suggest Windows)
In reply to Re: fork(): when parent exits, what happens to child?
by jethro
in thread fork(): when parent exits, what happens to child?
by 7stud
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |