[quagga-dev 1067] Re: Bug in lib/daemon.c [PATCH]
paul at clubi.ie
Tue Apr 20 18:14:10 BST 2004
On Tue, 20 Apr 2004, PC Drew wrote:
> In my experiences, most POSIX function calls return < 0 on error,
> so I always check for that. Is there something wrong with checking
> < 0 or <= -1?
For functions that use errno to indicate type of error, do any return
values other than -1 (or other documented error value).
For setsid(), is there any system where this function is documented
to return a value other than -1? It just seems to me that if its
documented to return -1 (not < 0), we should check for -1.
Paul Jakma paul at clubi.ie paul at jakma.org Key ID: 64A2FF6A
warning: do not ever send email to spam at dishone.st
Peace cannot be kept by force; it can only be achieved by understanding.
-- Albert Einstein
More information about the Quagga-dev