* dcrt0.cc (child_info_fork::alloc_stack): Fix a comparison to avoid
taking 4K more stack in forked child. * fork.cc (frok::parent): Print child exit code in hex if sync failed.
This commit is contained in:
@@ -398,7 +398,7 @@ frok::parent (volatile char * volatile stack_here)
|
||||
/* Wait for subproc to initialize itself. */
|
||||
if (!ch.sync (pi.dwProcessId, hchild, FORK_WAIT_TIMEOUT))
|
||||
{
|
||||
if (!error ("forked process %u died unexpectedly, retry %d, exit code %d",
|
||||
if (!error ("forked process %u died unexpectedly, retry %d, exit code %y",
|
||||
pi.dwProcessId, ch.retry, ch.exit_code))
|
||||
continue;
|
||||
this_errno = EAGAIN;
|
||||
|
Reference in New Issue
Block a user