[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [tor-dev] When to exit 0 on error
On Sat, Jun 24, 2017 at 12:38 AM, <f55jwk4f@xxxxxxxxxxx> wrote:
> On Fri, Jun 23, 2017 at 10:29:32AM -0400, Zack Weinberg wrote:
>>
>> My expectation would be that exit(0) on fatal error is presumptively a
>> minor bug, it should be exit(1), and if there is some compelling
>> reason to exit successfully in a particular error case, there ought to
>> be a comment explaining that reason.
>
> Yes. I mean why to exit success instead of failure. But I don't know
> if those cases are typos, because there are 2 such cases, and a typo
> like that can be easily spotted in a review.
Yes, but a typo like that can also be easily *missed* in a review; you
read what ought to be there instead of what is.
zw
_______________________________________________
tor-dev mailing list
tor-dev@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-dev