From 150f3bd16864bfb1a8ab10904924fcee7feeb621 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Fri, 16 Sep 2005 01:47:09 +0000 Subject: * 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. --- winsup/cygwin/spawn.cc | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'winsup/cygwin/spawn.cc') 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; -- cgit v1.2.3