From: Michal Sojka Date: Tue, 15 Feb 2011 15:23:06 +0000 (+0100) Subject: forb: Add comments to forb_daemon_prepare() X-Git-Url: https://rtime.felk.cvut.cz/gitweb/frescor/frsh-forb.git/commitdiff_plain/b3d1fc2b226aa154978ab496d5c5abd139a88383 forb: Add comments to forb_daemon_prepare() --- diff --git a/src/forb/src/daemon.c b/src/forb/src/daemon.c index a7341362..89dd506c 100644 --- a/src/forb/src/daemon.c +++ b/src/forb/src/daemon.c @@ -27,7 +27,7 @@ void forb_daemon_prepare(const char *pid) perror("fork"); exit(1); } - if (child > 0) { + if (child > 0) { /* In parent */ close(daemon_pipe[1]); ret = read(daemon_pipe[0], &tmp, 1); if (pid) { @@ -38,7 +38,7 @@ void forb_daemon_prepare(const char *pid) } } exit(ret > 0 ? 0 : 1); - } else { + } else { /* In chind */ close(daemon_pipe[0]); } }