Skip to content

Commit

Permalink
daemon: Improve comments.
Browse files Browse the repository at this point in the history
Elsewhere we put the name of command-line options that control global
variables in the comment, so do so here as well.

Also fix a comment typo.
  • Loading branch information
blp committed Aug 25, 2010
1 parent 528b8cc commit d4db830
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions lib/daemon.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,17 @@

VLOG_DEFINE_THIS_MODULE(daemon)

/* Should we run in the background? */
/* --detach: Should we run in the background? */
static bool detach;

/* Name of pidfile (null if none). */
/* --pidfile: Name of pidfile (null if none). */
static char *pidfile;

/* Create pidfile even if one already exists and is locked? */
/* --overwrite-pidfile: Create pidfile even if one already exists and is
locked? */
static bool overwrite_pidfile;

/* Should we chdir to "/"? */
/* --no-chdir: Should we chdir to "/"? */
static bool chdir_ = true;

/* File descriptor used by daemonize_start() and daemonize_complete(). */
Expand Down Expand Up @@ -174,9 +175,9 @@ die_if_already_running(void)
}
}

/* If a pidfile has been configured, creates it and stores the running process'
* pid init. Ensures that the pidfile will be deleted when the process
* exits. */
/* If a pidfile has been configured, creates it and stores the running
* process's pid in it. Ensures that the pidfile will be deleted when the
* process exits. */
static void
make_pidfile(void)
{
Expand Down

0 comments on commit d4db830

Please sign in to comment.