diff options
author | Christopher Faylor <me@cgf.cx> | 2005-01-16 17:00:27 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2005-01-16 17:00:27 +0000 |
commit | 85b3fb9640eb423a640d86ccc713e91e0872fc8c (patch) | |
tree | 65f287390f52157eb16c9cb0016a0d6f06a5728f /winsup/cygwin/pinfo.h | |
parent | fdd857a1f6d5e68b212aaca8572f6b6c13b080d8 (diff) | |
download | cygnal-85b3fb9640eb423a640d86ccc713e91e0872fc8c.tar.gz cygnal-85b3fb9640eb423a640d86ccc713e91e0872fc8c.tar.bz2 cygnal-85b3fb9640eb423a640d86ccc713e91e0872fc8c.zip |
* init.cc (dll_entry): Remove unused extern.
* include/sys/cygwin.h: Remove PID_ZOMBIE.
* pinfo.h: Rename EXITCODE_* defines.
(pinfo::set_exit_state): Remove parameter.
* pinfo.cc (set_exit_state): Remove parameter. Reverse sense of test so that
exitcode is checked for having been set rather than not having been set. Set
flag when exitcode has been established. Don't set PID_STATE here.
(pinfo::init): Remove exitcode initialization.
(pinfo::exit): Reflect change in EXITCODE_* naming. Set flag when exitcode has
been established. Reflect change in arguments to set_process_state.
(proc_waiter): Reflect change in arguments to set_process_state. Set
process_state here and only here.
* fhandler_process.cc (fhandler_process::fill_filebuf): Reflect removal of
PID_ZOMBIE define.
(format_process_stat): Ditto.
(format_process_status): Ditto.
* sigproc.cc (pid_exists): Ditto.
(stopped_or_terminated): Ditto. Make sure that only low-order 16 bits of
exitcode are used.
* spawn.cc (spawn_guts): Reflect change in EXITCODE_* naming.
Diffstat (limited to 'winsup/cygwin/pinfo.h')
-rw-r--r-- | winsup/cygwin/pinfo.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/winsup/cygwin/pinfo.h b/winsup/cygwin/pinfo.h index 776e6359f..fc29139d5 100644 --- a/winsup/cygwin/pinfo.h +++ b/winsup/cygwin/pinfo.h @@ -26,9 +26,8 @@ enum picom PICOM_FIFO = 2 }; -#define EXITCODE_UNSET 0x80000000 -#define EXITCODE_NOSET EXITCODE_UNSET -#define EXITCODE_EXEC EXITCODE_UNSET +#define EXITCODE_SET 0x80000000 +#define EXITCODE_NOSET 0x40000000 class _pinfo { @@ -156,7 +155,7 @@ public: release (); } void exit (DWORD n) __attribute__ ((noreturn, regparm(2))); - void set_exit_state (DWORD) __attribute__ ((regparm(2))); + void set_exit_state () __attribute__ ((regparm(2))); void initialize_lock () {InitializeCriticalSection (&_lock);} void lock () {EnterCriticalSection (&_lock);} void unlock () {LeaveCriticalSection (&_lock);} |