* dll_init.c (dll_list::load_after_fork): Don't clear in_forkee here.

* fork.cc (frok::errmsg): Rename from 'error'.
(frok::error): New function.  Handle conditional printing of error messages.
(frok::parent): Record hchild handle for use by error function.  Use
throughout.  Use error function rather than setting error pointer directly.
(fork): Clear is_forkee here.  Accommodate rename of 'error' to 'errmsg'.
* sigproc.cc (child_info::proc_retry): Detect EXITCODE_FORK_FAILED.
This commit is contained in:
Christopher Faylor
2011-05-28 20:09:04 +00:00
parent beaedec545
commit 8551087823
4 changed files with 70 additions and 46 deletions

View File

@ -912,6 +912,9 @@ child_info::proc_retry (HANDLE h)
if (retry-- > 0)
exit_code = 0;
break;
case EXITCODE_FORK_FAILED: /* windows prevented us from forking */
break;
/* Count down non-recognized exit codes more quickly since they aren't
due to known conditions. */
default: