[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gnulib-bug
Subject:    Re: waitpid and warn_unused_result
From:       Jim Meyering <jim () meyering ! net>
Date:       2011-10-25 8:09:50
Message-ID: 87zkgp8pbl.fsf () rho ! meyering ! net
[Download RAW message or body]

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.

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic