diff options
Diffstat (limited to 'winsup/cygwin/spawn.cc')
-rw-r--r-- | winsup/cygwin/spawn.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/winsup/cygwin/spawn.cc b/winsup/cygwin/spawn.cc index 41f40543e..9f04b3074 100644 --- a/winsup/cygwin/spawn.cc +++ b/winsup/cygwin/spawn.cc @@ -52,7 +52,7 @@ static suffix_info dll_suffixes[] = }; HANDLE hExeced; -DWORD dwExeced; +child_info_spawn *chExeced; /* Add .exe to PROG if not already present and see if that exists. If not, return PROG (converted from posix to win32 rules if necessary). @@ -583,7 +583,8 @@ loop: pid_t pid; if (mode == _P_OVERLAY) { - myself->dwProcessId = dwExeced = pi.dwProcessId; + chExeced = &ch; /* FIXME: there's a race here if a user sneaks in CTRL-C */ + myself->dwProcessId = pi.dwProcessId; strace.execing = 1; myself.hProcess = hExeced = pi.hProcess; strcpy (myself->progname, real_path); // FIXME: race? |