Re: multiproccess: What is the Dameon flag?



Allen Fowler wrote:
Hello,

What is the Daemon flag and when/why would I want to use it?

From the documentation: "When a process exits, it attempts to terminate
all of its daemonic child processes.".

Sometimes you want the main process to wait for its worker processes to
terminate before terminating itself so that you can be sure that
everything (including resources they might use) has been tidied up.
Other times there's nothing to tidy up so you just want the worker
processes to terminate when the main process terminates. In the second
case the worker process are known as daemon processes.
.



Relevant Pages

  • Re: ending ftpd and freeing up the port?
    ... I don't see any procedure in ftpd manual ... that allows my script to terminate the daemon. ... then I can reuse the port. ...
    (comp.lang.tcl)
  • Re: [answer] Running daemon from rc.sysinit
    ... Kasper Dupont writes: ... > was done using the open command, which starts the program on a different ... > on the console to terminate. ... > daemon(). ...
    (comp.os.linux.development.system)
  • Re: ending ftpd and freeing up the port?
    ... that allows my script to terminate the daemon. ... The code does exit. ... then I can reuse the port. ...
    (comp.lang.tcl)
  • Re: multiproccess: What is the Dameon flag?
    ... What is the Daemon flag and when/why would I want to use it? ... processes to terminate when the main process terminates. ... So, without that flag the parent process could finish before the kids, and the kids would keep running? ...
    (comp.lang.python)
  • Re: multiprocessing Pool workers cannot create subprocesses
    ... the daemon flag set to True, which prevents workers from creating child ... It makes me nervous to just change the daemon status of the process like ... Why is important that the multiprocessing Pool worker processors have daemon=True (I think this is the same as asking: why is it important that they be terminated with terminate() rather than join)? ...
    (comp.lang.python)