Output of cmdline progs (was: KDE and the executable bit)

Thiago Macieira thiago at kde.org
Tue Jan 29 07:26:42 GMT 2008


Hans Meine wrote:
>Do such daemons close stdin/out/err?  Would it be possible to free the
>terminal in that case?  (Hopefully.)

Yes, daemons usually close their relations to the terminal and then set 
their controlling tty to be /dev/null, among other set-up operations. 
This ensures they won't get terminal-related signals.

What I don't know is if the parent process finds out that the child 
process closed the connection to the terminal.

Then again, if it's a daemon, it'll fork(), so the sentinel will exit 
after it's only child does.

-- 
  Thiago Macieira  -  thiago (AT) macieira.info - thiago (AT) kde.org
    PGP/GPG: 0x6EF45358; fingerprint:
    E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20080129/bf630b08/attachment.sig>


More information about the kde-core-devel mailing list