]> the.earth.li Git - onak.git/commit
Add error checking when trying to daemonize in keyd
authorJonathan McDowell <noodles@earth.li>
Mon, 6 Jan 2014 18:58:11 +0000 (10:58 -0800)
committerJonathan McDowell <noodles@earth.li>
Mon, 6 Jan 2014 18:58:11 +0000 (10:58 -0800)
commitf4734fb615e269af498d4c24ba402c2deba4730b
treeb1a4a92a655b028af1f632556fc2b0eebc79cf79
parentb2f2bc60555e2d953069c40d8d3cdecfcec9ac29
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().
keyd.c