* pipe.cc (fhandler_pipe::create): Avoid derefencing a NULL pointer.
* child_info.h (child_info): Reorganize some elements so that the ones which are initialized in a constructor are all together. * sigproc.cc (child_info::child_info): Initialize values via the constructor rather than as C statements and make sure that flags is set to zero initially. * spawn.cc (child_info_spawn::worker): Use iscygwin() test for determining when to send strace info since it is more foolproof than checking the suspend state.
This commit is contained in:
@@ -692,7 +692,7 @@ loop:
|
||||
goto out;
|
||||
}
|
||||
|
||||
if (!(c_flags & CREATE_SUSPENDED))
|
||||
if (iscygwin ())
|
||||
strace.write_childpid (*this, pi.dwProcessId);
|
||||
|
||||
/* Fixup the parent data structures if needed and resume the child's
|
||||
|
Reference in New Issue
Block a user