* sigproc.cc (get_proc_lock): Remove extra NULL check. Return false on

failure.
This commit is contained in:
Christopher Faylor 2011-11-29 17:41:01 +00:00
parent 6a28849237
commit 26bb3098fd
2 changed files with 9 additions and 9 deletions

View File

@ -1,3 +1,8 @@
2011-11-29 Christopher Faylor <me.cygwin2011@cgf.cx>
* sigproc.cc (get_proc_lock): Remove extra NULL check. Return false on
failure.
2011-11-29 Christopher Faylor <me.cygwin2011@cgf.cx>
* sync.cc: Fix comment.

View File

@ -134,7 +134,7 @@ get_proc_lock (DWORD what, DWORD val)
Static int lastwhat = -1;
if (!sync_proc_subproc)
{
sigproc_printf ("sync_proc_subproc is NULL (1)");
sigproc_printf ("sync_proc_subproc is NULL");
return false;
}
if (sync_proc_subproc.acquire (WPSP))
@ -142,14 +142,9 @@ get_proc_lock (DWORD what, DWORD val)
lastwhat = what;
return true;
}
if (!sync_proc_subproc)
{
sigproc_printf ("sync_proc_subproc is NULL (2)");
return false;
}
system_printf ("Couldn't acquire sync_proc_subproc for(%d,%d), last %d, %E",
what, val, lastwhat);
return true;
system_printf ("Couldn't acquire %s for(%d,%d), last %d, %E",
sync_proc_subproc.name, what, val, lastwhat);
return false;
}
static bool __stdcall