* 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:
Christopher Faylor
2011-11-23 21:58:43 +00:00
parent 9f65451e3e
commit 5f38ec4681
5 changed files with 25 additions and 16 deletions

View File

@@ -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