Eric Blake wrote: > Any objections to making the gnulib <sys/wait.h> apply the gcc > warn_unused_result attribute to waitpid(), even though glibc does not > (yet) do likewise? After all, if you fail to check for failures on > this syscall (particularly EINTR failures, where you should normally > repeat the waitpid() call), you can end up leaking unreaped child > processes, which is a rather nasty resource leak to debug.
That would be welcome. IMHO, we need not wait for glibc to add the warn_unused_result attribute.