Skip to content

Commit 1fad43c

Browse files
delamonpansienavi-desu
authored andcommitted
Add missing description for --notify option of supervise-daemon
This diff fixes incorrect output of --help due to missing help string. Because longots_help arrays was shorter by one element, running --help produced incorrect result. It could also lead to crash due to OOB access. Before: $ RC_SVCNAME=foo supervise-daemon foo --help | tail -n 9 --stderr-logger <arg> Redirect stderr to process -3, --reexec reexec (used internally) --notify <arg> Display this help output -h, --help Disable color output -C, --nocolor Display software version -V, --version Run verbosely -v, --verbose Run quietly (repeat to suppress errors) -q, --quiet Run in user mode -U, --user healthcheck-timer After: -3, --reexec reexec (used internally) --notify <arg> Open notify pipe -h, --help Display this help output -C, --nocolor Disable color output -V, --version Display software version -v, --verbose Run verbosely -q, --quiet Run quietly (repeat to suppress errors) -U, --user Run in user mode
1 parent 3e1c658 commit 1fad43c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/supervise-daemon/supervise-daemon.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@ const char * const longopts_help[] = {
152152
"Redirect stdout to process",
153153
"Redirect stderr to process",
154154
"reexec (used internally)",
155+
"Configures experimental notification behaviour",
155156
longopts_help_COMMON
156157
};
157158
const char *usagestring = NULL;

0 commit comments

Comments
 (0)