diff options
Diffstat (limited to 'winsup/cygwin/spawn.cc')
-rw-r--r-- | winsup/cygwin/spawn.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/winsup/cygwin/spawn.cc b/winsup/cygwin/spawn.cc index 688655c8a..6fd7fbe33 100644 --- a/winsup/cygwin/spawn.cc +++ b/winsup/cygwin/spawn.cc @@ -693,8 +693,8 @@ loop: } /* The CREATE_SUSPENDED case is handled below */ - if (!(c_flags & CREATE_SUSPENDED)) - strace.write_childpid (*this, pi.dwProcessId); + if (iscygwin () && !(c_flags & CREATE_SUSPENDED)) + strace.write_childpid (pi.dwProcessId); /* Fixup the parent data structures if needed and resume the child's main thread. */ @@ -787,7 +787,8 @@ loop: if (c_flags & CREATE_SUSPENDED) { ResumeThread (pi.hThread); - strace.write_childpid (*this, pi.dwProcessId); + if (iscygwin ()) + strace.write_childpid (pi.dwProcessId); } ForceCloseHandle (pi.hThread); |