... and fork lacks an error check, too.
(Yes, fork can fail. POSIX documents EAGAIN (temporary lack of resources or resource limits exceeded) and ENOMEM (out of memory). Linux also documents ENOSYS (not supported, e.g. on MMU-less hardware). The *BSDs follow POSIX.)
Alexander
In reply to Re^2: forking script hangs
by afoken
in thread forking script hangs
by trippledubs
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |