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
path: root/winsup
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2002-03-15 02:14:19 +0300
committerChristopher Faylor <me@cgf.cx>2002-03-15 02:14:19 +0300
commit4af6d4a9ab85eb27ac4fb41225e5b6edea2d427c (patch)
treea56c597cb074b951b998a0bb63a384178ff487e3 /winsup
parente10c087bd6f55fe86b272ce193ad36e7d04b8fdb (diff)
* pinfo.cc (pinfo::init): Properly handle execed process stub when PID_NOREDIR
is specified.
Diffstat (limited to 'winsup')
-rw-r--r--winsup/cygwin/ChangeLog5
-rw-r--r--winsup/cygwin/pinfo.cc5
2 files changed, 10 insertions, 0 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index 40923fc45..659649cf0 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,3 +1,8 @@
+2002-03-14 Christopher Faylor <cgf@redhat.com>
+
+ * pinfo.cc (pinfo::init): Properly handle execed process stub when
+ PID_NOREDIR is specified.
+
2002-03-13 Boris Schaeling <boriss@web.de>
* poll.cc (poll): Remove variable open_fds. Rearrange and add code to
diff --git a/winsup/cygwin/pinfo.cc b/winsup/cygwin/pinfo.cc
index 1bc4ac411..8e497ef18 100644
--- a/winsup/cygwin/pinfo.cc
+++ b/winsup/cygwin/pinfo.cc
@@ -183,6 +183,11 @@ pinfo::init (pid_t n, DWORD flag, HANDLE in_h)
api_fatal ("retrieval of execed process info for pid %d failed due to recursion.", n);
n = realpid;
release ();
+ if (flag & PID_NOREDIR)
+ {
+ set_errno (ENOENT);
+ break;
+ }
continue;
}