diff options
author | Christopher Faylor <me@cgf.cx> | 2000-10-24 02:25:27 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2000-10-24 02:25:27 +0000 |
commit | 4c45a897440c6517ab607daa36163f589863d09c (patch) | |
tree | 51c40b8f6e77c09fe5adfbec9b21c93a4b9b7495 /winsup/cygwin/spawn.cc | |
parent | 00ee2b44e796d03e3ce805a731d719ad17254fac (diff) | |
download | cygnal-4c45a897440c6517ab607daa36163f589863d09c.tar.gz cygnal-4c45a897440c6517ab607daa36163f589863d09c.tar.bz2 cygnal-4c45a897440c6517ab607daa36163f589863d09c.zip |
* exceptions.cc (signal_exit): Kill any executing child process if we're dying.
* path.h: Remove unneeded extern.
* spawn.cc (std_suffixes): Make static. Don't set dwProcessId here since it
makes the process unsignalable. Set strace flag that this is an execed process
stub.
* strace.cc (strace::vsprntf): Use strace flag to indicate when to visually
flag that this is an exec stub.
* include/sys/strace.h (strace): Add 'execing' flag.
Diffstat (limited to 'winsup/cygwin/spawn.cc')
-rw-r--r-- | winsup/cygwin/spawn.cc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/winsup/cygwin/spawn.cc b/winsup/cygwin/spawn.cc index b4d65ba2d..3afb45d38 100644 --- a/winsup/cygwin/spawn.cc +++ b/winsup/cygwin/spawn.cc @@ -37,7 +37,7 @@ details. */ #define LINE_BUF_CHUNK (MAX_PATH * 2) -suffix_info std_suffixes[] = +static suffix_info std_suffixes[] = { suffix_info (".exe", 1), suffix_info ("", 1), suffix_info (".com"), suffix_info (".cmd"), @@ -45,6 +45,8 @@ suffix_info std_suffixes[] = suffix_info (NULL) }; +HANDLE hExeced; + /* 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). The result is always BUF. @@ -671,7 +673,8 @@ skip_arg_parsing: /* These are both duplicated in the child code. We do this here, primarily for strace. */ strcpy (myself->progname, real_path); - myself->dwProcessId = pi.dwProcessId; + strace.execing = 1; + hExeced = pi.hProcess; } else { |