* sigproc.cc (get_proc_lock): Remove extra NULL check. Return false on
failure.
This commit is contained in:
parent
6a28849237
commit
26bb3098fd
|
@ -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>
|
2011-11-29 Christopher Faylor <me.cygwin2011@cgf.cx>
|
||||||
|
|
||||||
* sync.cc: Fix comment.
|
* sync.cc: Fix comment.
|
||||||
|
|
|
@ -134,7 +134,7 @@ get_proc_lock (DWORD what, DWORD val)
|
||||||
Static int lastwhat = -1;
|
Static int lastwhat = -1;
|
||||||
if (!sync_proc_subproc)
|
if (!sync_proc_subproc)
|
||||||
{
|
{
|
||||||
sigproc_printf ("sync_proc_subproc is NULL (1)");
|
sigproc_printf ("sync_proc_subproc is NULL");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (sync_proc_subproc.acquire (WPSP))
|
if (sync_proc_subproc.acquire (WPSP))
|
||||||
|
@ -142,14 +142,9 @@ get_proc_lock (DWORD what, DWORD val)
|
||||||
lastwhat = what;
|
lastwhat = what;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
if (!sync_proc_subproc)
|
system_printf ("Couldn't acquire %s for(%d,%d), last %d, %E",
|
||||||
{
|
sync_proc_subproc.name, what, val, lastwhat);
|
||||||
sigproc_printf ("sync_proc_subproc is NULL (2)");
|
return false;
|
||||||
return false;
|
|
||||||
}
|
|
||||||
system_printf ("Couldn't acquire sync_proc_subproc for(%d,%d), last %d, %E",
|
|
||||||
what, val, lastwhat);
|
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool __stdcall
|
static bool __stdcall
|
||||||
|
|
Loading…
Reference in New Issue