You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Jim Jagielski <ji...@jaguNET.com> on 1998/05/01 15:22:39 UTC
While looking through http_log.c
The function error_log_child ends with:
exit (1);
return(child_pid);
Why (and how) both?
--
===========================================================================
Jim Jagielski ||| jim@jaguNET.com ||| http://www.jaguNET.com/
"That's no ordinary rabbit... that's the most foul,
cruel and bad-tempered rodent you ever laid eyes on"
Re: While looking through http_log.c
Posted by Marc Slemko <ma...@worldgate.com>.
Because on win32 it returns the child PID but on other platforms it
doesn't. To make some compilers not give warnings, you need to have a
return in a function that returns a value, even if the statement right
before is an exit.
On Fri, 1 May 1998, Jim Jagielski wrote:
> The function error_log_child ends with:
>
> exit (1);
> return(child_pid);
>
> Why (and how) both?
> --
> ===========================================================================
> Jim Jagielski ||| jim@jaguNET.com ||| http://www.jaguNET.com/
> "That's no ordinary rabbit... that's the most foul,
> cruel and bad-tempered rodent you ever laid eyes on"
>