Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2002-11-05 07:23:41 +0300
committerChristopher Faylor <me@cgf.cx>2002-11-05 07:23:41 +0300
commit5806add291f1c7561b85ab188298c34a9f3a06c4 (patch)
tree69c2d25b94264939bd8d0b98a3555da40d2d7561 /winsup/cygwin
parentf57289609bdfe5c7063fb32336b1859c37b3c55b (diff)
* sigproc.cc (WAIT_SIG_PRIORITY): Bump to THREAD_PRIORITY_TIME_CRITICAL.
Diffstat (limited to 'winsup/cygwin')
-rw-r--r--winsup/cygwin/ChangeLog4
-rw-r--r--winsup/cygwin/fhandler_process.cc2
-rw-r--r--winsup/cygwin/pinfo.cc2
-rw-r--r--winsup/cygwin/sigproc.cc2
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,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.
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)