Re: [RFA 09/23] Remove close cleanup

Tom Tromey
2017-08-01T21:52:23Z

>>>>> "Simon" == Simon Marchi <simon.marchi@polymtl.ca> writes:

Simon> Instead of finding a solution to preserve errno, I think we should
Simon> return it explicitly when needed, it would be more robust and easier
Simon> to follow the trail where the value comes from. That would mean
Simon> changing

Simon> static enum mnsh_fs_code
Simon> linux_mntns_access_fs (pid_t pid)

Simon> to

Simon> static enum mnsh_fs_code
Simon> linux_mntns_access_fs (pid_t pid, int *errnop)

Simon> and possibly others. In that case, *ERRNOP would be set if
Simon> MNSH_FS_ERROR is returned.

I think somebody else should take this then.
I will see if I can drop this patch from the series.

Tom