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.
.
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: 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: Signal problem ... When the signal treatment was in the same file as my loop it ..."daemon"; if you "import daemon" from another file, you'll end with TWO different loaded modules for the SAME file. ... (comp.lang.python)
Re: in my linux, when I receive SIGHUP signal? ... When the connection was lost (eg the telephone hung up), ... associated with the terminal associated with the shell (including the ... just caused them to terminate....Daemon catches real live Hangups). ... (comp.os.linux.misc)
OnStop timing out, service manager terminating process? ... The worker processes call 3rd party, unsafe components, ... So now I've run into a problem where I want OnStop to attempt to shutdown... wait for a short period and finally terminate... The problem seems to be that the service manager will stop the service, ... (microsoft.public.dotnet.framework)