* 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.
This commit is contained in:
@ -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 ();
|
||||
}
|
||||
|
Reference in New Issue
Block a user