diff options
Diffstat (limited to 'winsup/cygwin/spawn.cc')
-rw-r--r-- | winsup/cygwin/spawn.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/winsup/cygwin/spawn.cc b/winsup/cygwin/spawn.cc index 68e5572a3..df1eb1a68 100644 --- a/winsup/cygwin/spawn.cc +++ b/winsup/cygwin/spawn.cc @@ -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; } |