diff options
author | Christopher Faylor <me@cgf.cx> | 2006-03-22 06:20:28 +0300 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2006-03-22 06:20:28 +0300 |
commit | 76ef40d69f3651f01b3e2ffdeb470593d62e04b0 (patch) | |
tree | 22c20816ba49b39aae919e585cf2c88dc050bcf5 /winsup/cygwin/child_info.h | |
parent | ce93dfe4150ab537bfc55b834f933145e18098c0 (diff) |
* child_info.h (child_status): Fix typo which made it impossible to set
iscygwin.
(child_info::isstraced): Booleanize.
(child_info::iscygwin): Ditto.
* sigproc.cc (child_info::child_info): Minor cleanup of flag setting.
* spawn.cc (spawn_guts): Only close_all_files when we know the process has
started successfully.
* exceptions.cc (init_console_handler): Fix indentation.
Diffstat (limited to 'winsup/cygwin/child_info.h')
-rw-r--r-- | winsup/cygwin/child_info.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/winsup/cygwin/child_info.h b/winsup/cygwin/child_info.h index e6599e845..c9f6eae2f 100644 --- a/winsup/cygwin/child_info.h +++ b/winsup/cygwin/child_info.h @@ -21,7 +21,7 @@ enum child_info_types enum child_status { _CI_STRACED = 0x01, - _CI_ISCYGWIN = 0x0 + _CI_ISCYGWIN = 0x02 }; #define OPROC_MAGIC_MASK 0xff00ff00 @@ -36,7 +36,7 @@ enum child_status #define EXEC_MAGIC_SIZE sizeof(child_info) /* Change this value if you get a message indicating that it is out-of-sync. */ -#define CURR_CHILD_INFO_MAGIC 0xa189e57U +#define CURR_CHILD_INFO_MAGIC 0x1630848cU /* NOTE: Do not make gratuitous changes to the names or organization of the below class. The layout is checksummed to determine compatibility between @@ -66,8 +66,8 @@ public: void ready (bool); bool sync (int, HANDLE&, DWORD) __attribute__ ((regparm (3))); DWORD proc_retry (HANDLE) __attribute__ ((regparm (2))); - bool isstraced () const {return flag & _CI_STRACED;} - bool iscygwin () const {return flag & _CI_ISCYGWIN;} + bool isstraced () const {return !!(flag & _CI_STRACED);} + bool iscygwin () const {return !!(flag & _CI_ISCYGWIN);} }; class mount_info; |