check file read/writeability before daemonizing
authorAndrew Engelbrecht <sudoman@ninthfloor.org>
Mon, 15 Oct 2012 14:45:46 +0000 (10:45 -0400)
committerAndrew Engelbrecht <sudoman@ninthfloor.org>
Mon, 15 Oct 2012 14:45:46 +0000 (10:45 -0400)
commitbcf8c76a8fea0ac984e944841caff8256b4ba800
tree560808c22b6100dfe82affff61b04937f2f09cb8
parentd8cd732f684da03f733c15a63a38e26bddd0a408
check file read/writeability before daemonizing

in order to catch permission errors, i've set the program to check
whether files can be read from/written to, before stdio is redirected
from the current tty.

this way, users will definitely know about problems, instead of assuming
everything went ok.
webnhscores