* pinfo.cc (pinfo::init): Properly handle execed process stub when PID_NOREDIR

is specified.
This commit is contained in:
Christopher Faylor 2002-03-14 23:14:19 +00:00
parent e10c087bd6
commit 4af6d4a9ab
2 changed files with 10 additions and 0 deletions

View File

@ -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

View File

@ -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;
}