* 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.
This commit is contained in:
Christopher Faylor
2005-09-16 01:47:09 +00:00
parent a3a9aac72d
commit 150f3bd168
5 changed files with 16 additions and 14 deletions

View File

@@ -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;