Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2006-08-27 20:46:27 +0400
committerChristopher Faylor <me@cgf.cx>2006-08-27 20:46:27 +0400
commit1cc0c5d6f9bf27b40f75d26887a6698049bf884d (patch)
treef04c7b903d902402d56ade54e9b89273abfc4b55 /winsup/cygwin/child_info.h
parentd9baa656ed7a459d4c037ac3592b67d58a1debdc (diff)
* child_info.h (child_info_spawn::~child_info_spawn): Don't close myself_pinfo
handle when spawning.
Diffstat (limited to 'winsup/cygwin/child_info.h')
-rw-r--r--winsup/cygwin/child_info.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/winsup/cygwin/child_info.h b/winsup/cygwin/child_info.h
index 9f11015dd..d2b712e88 100644
--- a/winsup/cygwin/child_info.h
+++ b/winsup/cygwin/child_info.h
@@ -38,7 +38,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 0x704d1f7eU
+#define CURR_CHILD_INFO_MAGIC 0x3a24db6aU
/* NOTE: Do not make gratuitous changes to the names or organization of the
below class. The layout is checksummed to determine compatibility between
@@ -122,7 +122,8 @@ public:
cfree (*e);
cfree (moreinfo->envp);
}
- CloseHandle (moreinfo->myself_pinfo);
+ if (type != _PROC_SPAWN)
+ CloseHandle (moreinfo->myself_pinfo);
cfree (moreinfo);
}
}