Drop flag if creating new process failed.
+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.
loop:
cygheap->user.deimpersonate ();
- if (!real_path.iscygexec ())
+ if (!real_path.iscygexec () && mode == _P_OVERLAY)
myself->process_state |= PID_NOTCYGWIN;
if (!cygheap->user.issetuid ()
myself->sendsig = myself->exec_sendsig;
myself->exec_sendsig = NULL;
}
+ myself->process_state &= ~PID_NOTCYGWIN;
res = -1;
goto out;
}