]> git.tuebingen.mpg.de Git - dss.git/commit
daemon.c: Open /dev/null read-write.
authorAndre Noll <maan@tuebingen.mpg.de>
Mon, 30 Mar 2015 16:20:16 +0000 (16:20 +0000)
committerAndre Noll <maan@tuebingen.mpg.de>
Tue, 14 Apr 2015 09:11:22 +0000 (11:11 +0200)
commit5b5d7b59a34579ba86ce620ee527ffad087c9b60
treebef81147d800676567d9c352744f58f303b9d194
parent34cec69f582576b8845b5bb6b544afc321f46d29
daemon.c: Open /dev/null read-write.

While daemonizing we redirect stdin, stdout and stderr to /dev/null,
which is considered good practice. We should, however, open these
two devices in read-write mode rather than read-only, since not being
able to write to stdout/stderr might confuse rsync and the hooks.
daemon.c