On Tue, Aug 13, 2002 at 09:16:29PM +0200, Eliran wrote: > import os > childpid = os.fork > if (childpid == 0): > child_stuff() > else: > os.exit()
You definitely have to keep it somewhere outside the program,
then. /var/run/foo/pid comes to mind as a reasonably place (assuming
you have permission to write there).
--
"Hmm.. Cache shrink failed - time to kill something?
Mhwahahhaha! This is the part I really like. Giggle."
-- linux/mm/vmscan.c
http://vipe.technion.ac.il/~mulix/ http://syscalltrack.sf.net
msg20985/pgp00000.pgp
Description: PGP signature
