* sigproc.cc (child_info::sync): Move check for !wr_proc_pipe lower.

* spawn.cc (spawn_guts): Correct check for top-level process.
This commit is contained in:
Christopher Faylor
2005-10-19 22:25:46 +00:00
parent fece95f7f3
commit 0cdcb2345a
2 changed files with 26 additions and 31 deletions

View File

@@ -815,7 +815,7 @@ spawn_guts (const char * prog_arg, const char *const *argv,
{
case _P_OVERLAY:
myself.hProcess = pi.hProcess;
if (!synced && !myself->wr_proc_pipe)
if (synced && !myself->wr_proc_pipe)
{
extern bool is_toplevel_proc;
is_toplevel_proc = true;