summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/spawn.cc
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2005-09-16 01:47:09 +0000
committerChristopher Faylor <me@cgf.cx>2005-09-16 01:47:09 +0000
commit150f3bd16864bfb1a8ab10904924fcee7feeb621 (patch)
tree2abfee9cba967c6227d2391575f19210ecd6ade1 /winsup/cygwin/spawn.cc
parenta3a9aac72d82414427d0f020b74a12c26905426c (diff)
downloadcygnal-150f3bd16864bfb1a8ab10904924fcee7feeb621.tar.gz
cygnal-150f3bd16864bfb1a8ab10904924fcee7feeb621.tar.bz2
cygnal-150f3bd16864bfb1a8ab10904924fcee7feeb621.zip
* sigproc.cc (no_signals_available): Return true if sending to self from the
signal thread. (wait_sig): Correct so that WaitForSingleObject is called when hMainThread is != 0, rather than the reverse. * cygheap.cc (cygheap_fixup_in_child): Clarify potential error message. * fork.cc (fork_copy): Cosmetic change.
Diffstat (limited to 'winsup/cygwin/spawn.cc')
-rw-r--r--winsup/cygwin/spawn.cc11
1 files changed, 1 insertions, 10 deletions
diff --git a/winsup/cygwin/spawn.cc b/winsup/cygwin/spawn.cc
index 73c148e24..ffafa8f7c 100644
--- a/winsup/cygwin/spawn.cc
+++ b/winsup/cygwin/spawn.cc
@@ -1020,15 +1020,6 @@ av::fixup (child_info_types chtype, const char *prog_arg, path_conv& real_path,
bool exeext = strcasematch (ext, ".exe");
if (exeext && real_path.iscygexec ())
return 0;
- char *buf = NULL;
- myfault efault;
- if (efault.faulted ())
- {
- if (buf)
- UnmapViewOfFile (buf);
- real_path.set_cygexec (false);
- return 0;
- }
while (1)
{
HANDLE h = CreateFile (real_path, GENERIC_READ,
@@ -1042,7 +1033,7 @@ av::fixup (child_info_types chtype, const char *prog_arg, path_conv& real_path,
CloseHandle (h);
if (!hm)
goto err;
- buf = (char *) MapViewOfFile(hm, FILE_MAP_READ, 0, 0, 0);
+ char *buf = (char *) MapViewOfFile(hm, FILE_MAP_READ, 0, 0, 0);
CloseHandle (hm);
if (!buf)
goto err;