From: Jonathan McDowell Date: Mon, 6 Jan 2014 18:58:11 +0000 (-0800) Subject: Add error checking when trying to daemonize in keyd X-Git-Tag: onak-0.4.3~16 X-Git-Url: http://the.earth.li/gitweb/?a=commitdiff_plain;h=f4734fb615e269af498d4c24ba402c2deba4730b;hp=f4734fb615e269af498d4c24ba402c2deba4730b;p=onak.git Add error checking when trying to daemonize in keyd We weren't checking the return from freopen, which causes warnings when compiling with -D_FORTIFY_SOURCE=2. Do so, and also for the setsid(). ---