I have inherited a Perl script that, depending on machine configuration, fails during calls to fork
with $? == 11
.
According to errno.h
and various posts, 11 is EAGAIN
, i.e. "try again", because some resource was temporarily unavailable.
Is there a way to determine which resource caused the fork to fail, other than increasing various system limits one by one (open file descriptors, swap space, or number of allowable threads)?