From 5806add291f1c7561b85ab188298c34a9f3a06c4 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Tue, 5 Nov 2002 04:23:41 +0000 Subject: [PATCH] * sigproc.cc (WAIT_SIG_PRIORITY): Bump to THREAD_PRIORITY_TIME_CRITICAL. --- winsup/cygwin/ChangeLog | 4 ++++ winsup/cygwin/fhandler_process.cc | 2 +- winsup/cygwin/pinfo.cc | 2 ++ winsup/cygwin/sigproc.cc | 2 +- 4 files changed, 8 insertions(+), 2 deletions(-) diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 3d09e6abd..4bffe2169 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,7 @@ +2002-11-04 Christopher Faylor + + * sigproc.cc (WAIT_SIG_PRIORITY): Bump to THREAD_PRIORITY_TIME_CRITICAL. + 2002-11-04 Christopher Faylor * pinfo.cc (_pinfo::commune_send): Initialize buffer or suffer random diff --git a/winsup/cygwin/fhandler_process.cc b/winsup/cygwin/fhandler_process.cc index 03000a21d..7b1773f0e 100644 --- a/winsup/cygwin/fhandler_process.cc +++ b/winsup/cygwin/fhandler_process.cc @@ -60,7 +60,7 @@ static const char * const process_listing[] = "ctty", "stat", "statm", - "cmdline", + "qmdline", NULL }; diff --git a/winsup/cygwin/pinfo.cc b/winsup/cygwin/pinfo.cc index 0f9510fda..7810c043a 100644 --- a/winsup/cygwin/pinfo.cc +++ b/winsup/cygwin/pinfo.cc @@ -234,6 +234,8 @@ pinfo::init (pid_t n, DWORD flag, HANDLE in_h) bool _pinfo::alive () { + if (!dwProcessId) + return 0; HANDLE h = OpenProcess (PROCESS_QUERY_INFORMATION, false, dwProcessId); if (h) CloseHandle (h); diff --git a/winsup/cygwin/sigproc.cc b/winsup/cygwin/sigproc.cc index 74fb35c07..8af76e138 100644 --- a/winsup/cygwin/sigproc.cc +++ b/winsup/cygwin/sigproc.cc @@ -41,7 +41,7 @@ details. */ #define WSPX 20000 // Wait for wait_sig 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)