* pinfo.h (EXITCODE_OK): Define new constant.

* sigproc.cc (child_info::sync): Return EXITCODE_OK if entering with exit_code
== 0.
(sig_send): Don't complain if sending signals while blocked if the sender isn't
in the main thread.
This commit is contained in:
Christopher Faylor 2006-03-18 19:28:59 +00:00
parent a939686807
commit 3b69aaa932
3 changed files with 12 additions and 1 deletions

View File

@ -1,3 +1,11 @@
2006-03-18 Christopher Faylor <cgf@timesys.com>
* pinfo.h (EXITCODE_OK): Define new constant.
* sigproc.cc (child_info::sync): Return EXITCODE_OK if entering with
exit_code == 0.
(sig_send): Don't complain if sending signals while blocked if the
sender isn't in the main thread.
2006-03-18 Christopher Faylor <cgf@timesys.com>
* child_info.h (CURR_CHILD_INFO_MAGIC): Regenerate.

View File

@ -35,6 +35,7 @@ enum picom
#define EXITCODE_SET 0x8000000
#define EXITCODE_NOSET 0x4000000
#define EXITCODE_RETRY 0x2000000
#define EXITCODE_OK 0x1000000
class fhandler_pipe;

View File

@ -520,7 +520,7 @@ sig_send (_pinfo *p, int sig)
SetEvent (sigCONT);
sigheld = false;
}
else
else if (&_my_tls == _main_tls)
{
#ifdef DEBUGGING
system_printf ("signal %d sent to %p while signals are on hold", sig, p);
@ -886,6 +886,8 @@ child_info::sync (pid_t pid, HANDLE& hProcess, DWORD howlong)
DWORD
child_info::proc_retry (HANDLE h)
{
if (!exit_code)
return EXITCODE_OK;
switch (exit_code)
{
case STILL_ACTIVE: /* shouldn't happen */