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/strace.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/strace.cc')
-rw-r--r-- | winsup/cygwin/strace.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/winsup/cygwin/strace.cc b/winsup/cygwin/strace.cc index 41c436e05..d13596ea4 100644 --- a/winsup/cygwin/strace.cc +++ b/winsup/cygwin/strace.cc @@ -133,10 +133,8 @@ strace::vsprntf (char *buf, const char *func, const char *infmt, va_list ap) if ((p = strrchr (progname, '.')) != NULL && strcasematch (p, ".exe")) *p = '\000'; p = progname; - count = __small_sprintf (buf, fmt, p && *p ? p : "?", - myself->pid, - myself->dwProcessId != GetCurrentProcessId () - ? "!" : ""); + count = __small_sprintf (buf, fmt, p && *p ? p : "?", myself->pid, + execing ? "!" : ""); if (func) count += getfunc (buf + count, func); } @@ -177,6 +175,8 @@ strace::write (unsigned category, const char *buf, int count) __small_sprintf (outbuf, "cYg%08x", strlen (outstuff) + 1); outstuff[-1] = ' '; OutputDebugString (outbuf); +#undef outstuff +#undef PREFIX } /* Printf function used when tracing system calls. |