On Tue, Aug 13, 2002 at 09:06:39PM +0200, Eliran wrote: > Take the 'fetchmail' program for example. > > You use 'fetchmail -d nn' to start the daemon, later when you want to stop > it you type : 'fetchmail -q' there is no special structure, I used > the same code as you but the child's code was in a function.
So, what's the problem again? You have the child's pid, don't you?
Not to mention that if you use 'fetchmail -q', you don't need it
anyway!
You might want to look into os.system() to spawn a process in the
background, if you don't want to handle wait() yourself.
--
"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
msg20982/pgp00000.pgp
Description: PGP signature
