From 4af6d4a9ab85eb27ac4fb41225e5b6edea2d427c Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Thu, 14 Mar 2002 23:14:19 +0000 Subject: * pinfo.cc (pinfo::init): Properly handle execed process stub when PID_NOREDIR is specified. --- winsup/cygwin/ChangeLog | 5 +++++ winsup/cygwin/pinfo.cc | 5 +++++ 2 files changed, 10 insertions(+) (limited to 'winsup') 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 + + * pinfo.cc (pinfo::init): Properly handle execed process stub when + PID_NOREDIR is specified. + 2002-03-13 Boris Schaeling * 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; } -- cgit v1.2.3