[quagga-dev 1069] Re: Bug in lib/daemon.c [PATCH]
boris at tagnet.ru
Wed Apr 21 03:44:26 BST 2004
I agree with Paul. To clarify the code and to minimize any feature
errors we should use as more strict equations as possible. So, in a view
of my POSIX knowledge, I have no objections to use == -1.
Paul Jakma wrote:
>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.
More information about the Quagga-dev