From 76ef40d69f3651f01b3e2ffdeb470593d62e04b0 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Wed, 22 Mar 2006 03:20:28 +0000 Subject: * 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. --- winsup/cygwin/child_info.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'winsup/cygwin/child_info.h') 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; -- cgit v1.2.3