2
0
mirror of https://github.com/openvswitch/ovs synced 2025-09-01 14:55:18 +00:00

daemon: Improve comments.

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.
This commit is contained in:
Ben Pfaff
2010-08-22 23:13:35 -07:00
parent 528b8cc4fa
commit d4db8309c5

View File

@@ -36,16 +36,17 @@
VLOG_DEFINE_THIS_MODULE(daemon) VLOG_DEFINE_THIS_MODULE(daemon)
/* Should we run in the background? */ /* --detach: Should we run in the background? */
static bool detach; static bool detach;
/* Name of pidfile (null if none). */ /* --pidfile: Name of pidfile (null if none). */
static char *pidfile; 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; static bool overwrite_pidfile;
/* Should we chdir to "/"? */ /* --no-chdir: Should we chdir to "/"? */
static bool chdir_ = true; static bool chdir_ = true;
/* File descriptor used by daemonize_start() and daemonize_complete(). */ /* File descriptor used by daemonize_start() and daemonize_complete(). */
@@ -174,9 +175,9 @@ die_if_already_running(void)
} }
} }
/* If a pidfile has been configured, creates it and stores the running process' /* If a pidfile has been configured, creates it and stores the running
* pid init. Ensures that the pidfile will be deleted when the process * process's pid in it. Ensures that the pidfile will be deleted when the
* exits. */ * process exits. */
static void static void
make_pidfile(void) make_pidfile(void)
{ {