Re: bugfix for vacation
In article <[🔎] 19990716132028.Z1952@justice.loyola.edu>, Michael Stone
<mstone@debian.org> writes
>On Fri, Jul 16, 1999 at 02:19:59PM +0100, Ian Lynagh wrote:
>> In article <[🔎] 19990715025911.I19631@ipe.uni-stuttgart.de>, Nils Rennebarth
>> <nils@ipe.uni-stuttgart.de> writes
>> > if (i < 0) {
>> > syslog(LOG_ERR, "vacation: fork: %s", strerror(errno));
>> > exit(1);
>> > }
>> > if (i == 0) {
>> [...]
>> > }
>>
>> Why isn't the second if an elseif? Wouldn't that be more efficient?
>
>No. (Note that the program exits in the first "if". You can argue
Ah. Doh!
--
Ian Lynagh - ian@lynagh.demon.co.uk
http://www.lynagh.demon.co.uk/
Human beings were invented by water as a means of transporting itself from one
place to another.
Reply to: