This is the mail archive of the
cygwin-patches
mailing list for the Cygwin project.
Re: [PATCH] Improve error handling in /proc/[pid]/ virtual files.
On Wed, Apr 10, 2019 at 10:50 PM Corinna Vinschen wrote:
>
> On Apr 10 17:05, Erik M. Bray wrote:
> > * Changes error handling to allow /proc/[pid]/ virtual files to be
> > empty in some cases (in this case the file's formatter should return
> > -1 upon error, not 0).
> >
> > * Better error handling of /proc/[pid]/stat for zombie processes:
> > previously trying to open this file on zombie processes resulted
> > in an EINVAL being returned by open(). Now the file can be read,
> > and fields that can no longer be read are just zeroed.
> >
> > * Similarly for /proc/[pid]/statm for zombie processes.
> >
> > * Similarly for /proc/[pid]/maps for zombie processes (in this case the
> > file can be read but is zero-length, which is consistent with observed
> > behavior on Linux.
>
> Pushed. New snapshots building right now.
Excellent, thank you!