[RFA 09/23] Remove close cleanup

Tom Tromey tom@tromey.com
Tue Aug 1 21:52:00 GMT 2017


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



More information about the Gdb-patches mailing list