diff options
author | Christopher Faylor <me@cgf.cx> | 2002-01-10 06:21:27 +0300 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2002-01-10 06:21:27 +0300 |
commit | c0a8e8d0f92afd91dae916fdcf537f06eb8dc256 (patch) | |
tree | 53835aa9b9ee957f851af2d0d74371840785046c /winsup/cygwin/spawn.cc | |
parent | fe37dd79ec5c16b5f124c756ef4c232ba591fcaf (diff) |
* exceptions.cc (early_stuff_init): Rename from misnamed set_console_handler.
(ctrl_c_handler): Attempt to work around potential signal duplication during
process startup.
(sig_handle): Ignore SIGINT when we're just an "exec stub".
* spawn.cc (spawn_guts): Store pid of spawned process in global for use by
ctrl_c_handler.
* dcrt0.cc (dll_crt0_1): Call renamed initialization function.
* winsup.h: Reflect function name change.
Diffstat (limited to 'winsup/cygwin/spawn.cc')
-rw-r--r-- | winsup/cygwin/spawn.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/winsup/cygwin/spawn.cc b/winsup/cygwin/spawn.cc index 72fb649bf..c9f1074c9 100644 --- a/winsup/cygwin/spawn.cc +++ b/winsup/cygwin/spawn.cc @@ -48,6 +48,7 @@ static suffix_info std_suffixes[] = }; HANDLE hExeced; +DWORD dwExeced; /* 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). @@ -56,7 +57,7 @@ HANDLE hExeced; Returns (possibly NULL) suffix */ static const char * -perhaps_suffix (const char *prog, path_conv &buf) +perhaps_suffix (const char *prog, path_conv& buf) { char *ext; @@ -760,6 +761,7 @@ spawn_guts (HANDLE hToken, const char * prog_arg, const char *const *argv, primarily for strace. */ strace.execing = 1; hExeced = pi.hProcess; + dwExeced = pi.dwProcessId; strcpy (myself->progname, real_path); close_all_files (); } |