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:
authorCorinna Vinschen <corinna@vinschen.de>2008-03-05 21:31:09 +0300
committerCorinna Vinschen <corinna@vinschen.de>2008-03-05 21:31:09 +0300
commit8a889eff57a95b48187e0e7876f2b7898b3e3df7 (patch)
tree9bcf3b3bc3d6c7b70131bf5e15c12005dd5b5ae6 /winsup/cygwin/child_info.h
parente3bf57046bfeaf2ce8966aa7b011994e85ee7142 (diff)
* child_info.h (~child_info_spawn): Check moreinfo->myself_pinfo for
NULL before closing. * spawn.cc (spawn_guts): Don't close moreinfo->myself_pinfo explicitely in case of failing CloseProcess. * fhandler.cc (fhandler_base::open_): Return EISDIR when trying to create a directory. * path.cc (path_conv::check): If input path had a trailing dir separator, tack it on to the native path if directory doesn't exist.
Diffstat (limited to 'winsup/cygwin/child_info.h')
-rw-r--r--winsup/cygwin/child_info.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/child_info.h b/winsup/cygwin/child_info.h
index 41abe00f6..47afc506a 100644
--- a/winsup/cygwin/child_info.h
+++ b/winsup/cygwin/child_info.h
@@ -125,7 +125,7 @@ public:
cfree (*e);
cfree (moreinfo->envp);
}
- if (type != _PROC_SPAWN)
+ if (type != _PROC_SPAWN && moreinfo->myself_pinfo)
CloseHandle (moreinfo->myself_pinfo);
cfree (moreinfo);
}