4
0
mirror of git://sourceware.org/git/newlib-cygwin.git synced 2025-02-22 00:38:06 +08:00

* sigproc.cc (WAIT_SIG_PRIORITY): Bump to THREAD_PRIORITY_TIME_CRITICAL.

This commit is contained in:
Christopher Faylor 2002-11-05 04:23:41 +00:00
parent f57289609b
commit 5806add291
4 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2002-11-04 Christopher Faylor <cgf@redhat.com>
* sigproc.cc (WAIT_SIG_PRIORITY): Bump to THREAD_PRIORITY_TIME_CRITICAL.
2002-11-04 Christopher Faylor <cgf@redhat.com> 2002-11-04 Christopher Faylor <cgf@redhat.com>
* pinfo.cc (_pinfo::commune_send): Initialize buffer or suffer random * pinfo.cc (_pinfo::commune_send): Initialize buffer or suffer random

View File

@ -60,7 +60,7 @@ static const char * const process_listing[] =
"ctty", "ctty",
"stat", "stat",
"statm", "statm",
"cmdline", "qmdline",
NULL NULL
}; };

View File

@ -234,6 +234,8 @@ pinfo::init (pid_t n, DWORD flag, HANDLE in_h)
bool bool
_pinfo::alive () _pinfo::alive ()
{ {
if (!dwProcessId)
return 0;
HANDLE h = OpenProcess (PROCESS_QUERY_INFORMATION, false, dwProcessId); HANDLE h = OpenProcess (PROCESS_QUERY_INFORMATION, false, dwProcessId);
if (h) if (h)
CloseHandle (h); CloseHandle (h);

View File

@ -41,7 +41,7 @@ details. */
#define WSPX 20000 // Wait for wait_sig to terminate #define WSPX 20000 // Wait for wait_sig to terminate
#define WWSP 20000 // Wait for wait_subproc to terminate #define WWSP 20000 // Wait for wait_subproc to terminate
#define WAIT_SIG_PRIORITY THREAD_PRIORITY_HIGHEST #define WAIT_SIG_PRIORITY THREAD_PRIORITY_TIME_CRITICAL
#define TOTSIGS (NSIG + __SIGOFFSET) #define TOTSIGS (NSIG + __SIGOFFSET)