[ZODB-Dev] restart log weirdness

Guido van Rossum guido@python.org
Thu, 10 Oct 2002 22:38:45 -0400


I'm experimenting with SIGUSR2 in ZEO/start.py.  This signal (now) is
supposed to reopen the log file.

The weirdness is that after sending the signal, the storage server
process indeed reopens the log file, but the zdaemon appears to stop
logging!

I can't find anything to explain this.

Could it be that the subprocess and the parent process share a file
descriptor and that when the child closes it (as part of the reopening
procedure) the parent's file descriptor is somehow also closed?

The parent process doesn't die -- it stays alive until I send it a
SIGTERM, and then it passes that on to the child and both exit.

--Guido van Rossum (home page: http://www.python.org/~guido/)