I can kill processes and send signals to them with kill
, so I don't need controlling terminal
(or ctty
) for that. So.. is the purpose of controlling terminal
is solely for reacting to nudges from user? Transforming Ctrl-C
key press into SIGINT
("hey, stop it!") and detecting if operator behind the keyboard is still alive ("keyboard is detached - SIGHUP
, man")?
The docs are full with details that doesn't answer the question "why it is here?", which must be obvious for everybody except me.
ls
without a controlling terminal? – Satō Katsura Mar 21 '17 at 06:57ls
without a controlling terminal is less than useful? – Satō Katsura Mar 21 '17 at 07:49ls
can be run from acron
job for some automation, and my guess is thatcron
is run withoutctty
. http://unix.stackexchange.com/questions/352442/process-without-a-controlling-terminal?rq=1 may have more info about processes withoutctty
. – anatoly techtonik Mar 21 '17 at 07:54cron
job without a controlling terminal? – Satō Katsura Mar 21 '17 at 07:55kill
it if necessary bypid
. – anatoly techtonik Mar 21 '17 at 09:34