* select.cc (thread_pipe): Add paranoid check to ensure thread termination.
* external.cc: Eliminate obsolete include. * getopt.c (getopt_long): Fix compiler warning. * shared.h: Moved PID_ definitions to include/sys/cygwin so that they can be used by external programs. * include/sys/cygwin.h: Move external definitions here. Include sys/resource.h to avoid having to do this everywhere.
This commit is contained in:
@@ -505,6 +505,12 @@ thread_pipe (void *arg)
|
||||
goto out;
|
||||
}
|
||||
}
|
||||
/* Paranoid check */
|
||||
if (pi->stop_thread_pipe)
|
||||
{
|
||||
select_printf ("stopping from outer loop");
|
||||
break;
|
||||
}
|
||||
if (gotone)
|
||||
break;
|
||||
Sleep (10);
|
||||
|
Reference in New Issue
Block a user