This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFA 09/23] Remove close cleanup


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]