From 18d42bba70a91e85130f611afb1fe38ea76af3e3 Mon Sep 17 00:00:00 2001 From: erdgeist <> Date: Wed, 13 Mar 2013 13:03:19 +0000 Subject: Comments and formatting --- jaildaemon.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/jaildaemon.c b/jaildaemon.c index b15a253..9e2f6f7 100644 --- a/jaildaemon.c +++ b/jaildaemon.c @@ -478,11 +478,9 @@ int main( int argc, char **argv ) { exit(0); } - /* This utility mode code finished with the exit(0) above. We're daemon. */ + /* The utility mode code finished with the exit(0) above. We're daemon. */ - /* Daemonize and start a fork slave while there is no file descriptors or - initialized memory yet. Communicate with this slave via socketpair */ - if( !( g_pidfilehandle = pidfile_open(o_pidfile, 0600, &second_pid ) ) ) { + if( !( g_pidfilehandle = pidfile_open(o_pidfile, 0600, &second_pid ) ) ) { if (errno == EEXIST) exerr( "jaildaemon already running." ); @@ -502,6 +500,8 @@ int main( int argc, char **argv ) { warn( "Forcing start of daemon despite working command channel." ); } + /* Daemonize and start a fork slave while there is no file descriptors or + initialized memory yet. Communicate with this slave via socketpair */ if( daemon(1,0) == -1 ) { pidfile_remove(g_pidfilehandle); exerr( "daemonzing" ); -- cgit v1.2.3