Quote:
Originally Posted by matrixmadhan
Code:
Daemons have no controlling terminal.
Non-daemons have a controlling terminal.
Agreed.
ppid doesn't matter.
But what about a process started as nohup process and detached from controlling terminal ?
It has no terminal attached, I don't think it can be called as a daemon.
|
Started as a nohup or not doesn't matter. Most well written daemons will explicitly ignore signals that they want to ignore and install handlers for signals that they want to receive.
But if it's detached from it's controlling terminal, it is a
daemon. This is exactly what happens when you restart cron or inetd from the command line. Since you don't think that processes with no controlling terminals are daemons, what is your definition of a
daemon?