[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: waitpid and warn_unused_result
From: |
Jim Meyering |
Subject: |
Re: waitpid and warn_unused_result |
Date: |
Tue, 25 Oct 2011 10:09:50 +0200 |
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.