Commit 1fad43c
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 mode1 parent 3e1c658 commit 1fad43c
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
152 | 152 | | |
153 | 153 | | |
154 | 154 | | |
| 155 | + | |
155 | 156 | | |
156 | 157 | | |
157 | 158 | | |
| |||
0 commit comments