A Linux Daemon and the STDIN/STDOUT

前端 未结 6 1691
一生所求
一生所求 2021-02-14 23:30

I am working on a linux daemon and having some issues with the stdin/stdout. Normally because of the nature of a daemon you do not have any stdin or stdout. However, I do have a

6条回答
  •  隐瞒了意图╮
    2021-02-15 00:06

    If you insist on using stdin/keyboard input to fire up the daemon (e.g. to get some magic passphrase you wouldn't want to store in a file) then handle all I/O before the fork().

提交回复
热议问题