diff options
author | Christopher Faylor <me@cgf.cx> | 2011-06-01 05:20:28 +0400 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2011-06-01 05:20:28 +0400 |
commit | be9b5aba2693adef4a1018d695baa6cb32afd441 (patch) | |
tree | 6ebc6c0e1a40d2fc0712193a9d925222feec8837 /winsup/cygwin/external.cc | |
parent | a7a1247770dd53b8bced15e06d9b6af19a1790fe (diff) |
* external.cc (fillout_pinfo): Don't truncate ctty if it's < 0.
* select.cc (pipe_data_available): Avoid printing debug info by default or
suffer very large strace files.
Diffstat (limited to 'winsup/cygwin/external.cc')
-rw-r--r-- | winsup/cygwin/external.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/external.cc b/winsup/cygwin/external.cc index e7cb40ba4..d818cbc78 100644 --- a/winsup/cygwin/external.cc +++ b/winsup/cygwin/external.cc @@ -76,7 +76,7 @@ fillout_pinfo (pid_t pid, int winpid) } else if (nextpid || p->pid == pid || (winpid && thispid == (DWORD) pid)) { - ep.ctty = iscons_dev (p->ctty) ? p->ctty : device::minor (p->ctty); + ep.ctty = (p->ctty < 0 || iscons_dev (p->ctty)) ? p->ctty : device::minor (p->ctty); ep.pid = p->pid; ep.ppid = p->ppid; ep.dwProcessId = p->dwProcessId; |