3 ms·
Both processes resume after the fork call, and both go into the loop. Only the return value from the fork call tells you which process you're in. It is somewha
by barrkel 17y ago
Both processes resume after the fork call, and both go into the loop. Only the return value from the fork call tells you which process you're in.
It is somewhat idiosyncratic that the snippet uses both while (1) and for (;;) for infinite looping, which seems to indicate less than total familiarity with C.
- dmoney 17y agoAh, I was thinking the child process started from the beginning. I guess the artist was too. It'd be funny to get some green spraypaint and submit a patch.