Even if you turn off the buffering you should not expect more than one number every two seconds to arrive in data1.txt. Again because of 'sleep 2'.
Of course! So then the rule is: when a parent terminates, the child keeps on executing.
In reply to Re^3: fork(): when parent exits, what happens to child?
by 7stud
in thread fork(): when parent exits, what happens to child?
by 7stud
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |