[prev in list] [next in list] [prev in thread] [next in thread]
List: quagga-dev
Subject: [quagga-dev 1069] Re: Bug in lib/daemon.c [PATCH]
From: Boris Kovalenko <boris () tagnet ! ru>
Date: 2004-04-21 2:44:26
Message-ID: 4085E00A.7080605 () tagnet ! ru
[Download RAW message or body]
Hello!
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.
>
>regards,
>
>
--
With respect,
Boris
_______________________________________________
Quagga-dev mailing list
Quagga-dev@lists.quagga.net
http://lists.quagga.net/mailman/listinfo/quagga-dev
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic