4
0
mirror of git://sourceware.org/git/newlib-cygwin.git synced 2025-02-21 00:07:36 +08:00

* spawn.cc (spawn_guts): Only set PID_NOTCYGWIN in _P_OVERLAY mode.

Drop flag if creating new process failed.
This commit is contained in:
Corinna Vinschen 2011-02-15 18:11:50 +00:00
parent 38e6feddab
commit 8ec562ed28
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2011-02-15 Corinna Vinschen <corinna@vinschen.de>
* spawn.cc (spawn_guts): Only set PID_NOTCYGWIN in _P_OVERLAY mode.
Drop flag if creating new process failed.
2011-02-15 Corinna Vinschen <corinna@vinschen.de>
* Throughout fix copyright dates.

View File

@ -568,7 +568,7 @@ spawn_guts (const char *prog_arg, const char *const *argv,
loop:
cygheap->user.deimpersonate ();
if (!real_path.iscygexec ())
if (!real_path.iscygexec () && mode == _P_OVERLAY)
myself->process_state |= PID_NOTCYGWIN;
if (!cygheap->user.issetuid ()
@ -680,6 +680,7 @@ loop:
myself->sendsig = myself->exec_sendsig;
myself->exec_sendsig = NULL;
}
myself->process_state &= ~PID_NOTCYGWIN;
res = -1;
goto out;
}