OSDN Git Service

* sigproc.cc (WAIT_SIG_PRIORITY): Bump to THREAD_PRIORITY_TIME_CRITICAL.
authorcgf <cgf>
Tue, 5 Nov 2002 04:23:41 +0000 (04:23 +0000)
committercgf <cgf>
Tue, 5 Nov 2002 04:23:41 +0000 (04:23 +0000)
winsup/cygwin/ChangeLog
winsup/cygwin/fhandler_process.cc
winsup/cygwin/pinfo.cc
winsup/cygwin/sigproc.cc

index 3d09e6a..4bffe21 100644 (file)
@@ -1,5 +1,9 @@
 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>
+
        * pinfo.cc (_pinfo::commune_send): Initialize buffer or suffer random
        crashes.
 
index 03000a2..7b1773f 100644 (file)
@@ -60,7 +60,7 @@ static const char * const process_listing[] =
   "ctty",
   "stat",
   "statm",
-  "cmdline",
+  "qmdline",
   NULL
 };
 
index 0f9510f..7810c04 100644 (file)
@@ -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);
index 74fb35c..8af76e1 100644 (file)
@@ -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)