diff options
author | Ben Pfaff <blp@nicira.com> | 2010-08-22 23:13:35 -0700 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2010-08-25 14:55:47 -0700 |
commit | d4db8309c5f22e1fb0201c67b2bf044f652332b7 (patch) | |
tree | 3699c5e1965154eef931484ce35f10fee21e571d /lib/daemon.c | |
parent | 528b8cc4fa1a3cee71cd647ec399caf68760c9c0 (diff) |
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.
Diffstat (limited to 'lib/daemon.c')
-rw-r--r-- | lib/daemon.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/lib/daemon.c b/lib/daemon.c index c8033fbe..cb2f8c20 100644 --- a/lib/daemon.c +++ b/lib/daemon.c @@ -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(). */ @@ -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) { |