A Linux Daemon and the STDIN/STDOUT

前端 未结 6 1271
别跟我提以往
别跟我提以往 2021-02-14 23:32

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:14

    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().

提交回复
热议问题