httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cliff Skolnick <>
Subject Re: weird crash
Date Sat, 30 Nov 1996 08:56:02 GMT

I assume the target of your compile is the same file that the executable
is running.  On UNIX systems that dynamically page executables from the
file system (all BSD and SVR4 based), when you copy new data over a
running executable and some gets paged in wierd things will happen.  You
can protect against this by either doing an "mv httpd httpd-" or even an
"rm httpd" before writing out the executable.

Why does this happen only sometimes?  Well if you are lucky enough not to 
have to dynamically page anything in before you restart the program, you 
will see no problem.

HTTPD is not alone, you can do the same thing to most any daemon that
pages by doing a "cp"  atop a running executable.  A "mv" will not do it
since under the hood a "mv" does a logical "rm" before messing with


On Sat, 30 Nov 1996, Roy T. Fielding wrote:

> I've been noticing something weird about running my test server.
> If the server is running in the background when I re-make the
> executable, the parent server just dies.  There is nothing in the
> error_log, and no core file is present.  All the children die on the
> next request to the server.

Cliff Skolnick, Technical Consultant
Steam Tunnel Operations, 415.297.5938

View raw message