httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ben Laurie <...@gonzo.ben.algroup.co.uk>
Subject Re: exit(1); return(child_pid);
Date Mon, 16 Jun 1997 05:03:51 GMT
Jim Jagielski wrote:
> 
> Hmmmm... I noticed that the log functions are no longer voids, but are
> supposed to return ints. However, the UNIX side exits if the exec doesn't
> work and then does a return(child_pid), which doesn't make sense. At
> the least it's confusing on the UNIX side.
> 
> Just something to think about and put on the patch list.

They have to return ints because of the lack of a fork(). The point about
returning child_pid after the exit is simply to avoid compiler errors. It might
be clearer if they returned -1, though.

Cheers,

Ben.

-- 
Ben Laurie                Phone: +44 (181) 994 6435  Email: ben@algroup.co.uk
Freelance Consultant and  Fax:   +44 (181) 994 6472
Technical Director        URL: http://www.algroup.co.uk/Apache-SSL
A.L. Digital Ltd,         Apache Group member (http://www.apache.org)
London, England.          Apache-SSL author

Mime
View raw message