[PATCH] Improve error handling in /proc/[pid]/ virtual files.
Corinna Vinschen
corinna-cygwin@cygwin.com
Wed Apr 10 20:50:00 GMT 2019
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.
Thanks,
Corinna
--
Corinna Vinschen
Cygwin Maintainer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin-patches/attachments/20190410/129fcc2c/attachment.sig>
More information about the Cygwin-patches
mailing list