top | item 41781011

(no title)

gargalatas | 1 year ago

daemonization is the process of running a process in the background and without being attached to a terminal. Many applications exit when they are detached from the terminal they starter even when they yield no output. Maybe that is why it's still there. Of course back in the day fork() was all about creating background processes that were running quietly in the background were screen didn't exist yet and terminals were actual machines, not just one more window. Today System D doesn't like daemonization. IT prefers a process that can be attached somewhere.

discuss

order

jeffbee|1 year ago

> without being attached to a terminal

Isn't that more the job of `nohup`?

kazinator|1 year ago

No. While nohup redirects standard input and output and block the SIGHUP signal, it does not actually detach the process from the TTY session.

thwarted|1 year ago

No, nohup, as the name says, is about filtering/ignoring signals, specifically HUP, that are sent when the parent process shell exits.