statd: Fix test for foreground mode
Subsystems (2)
PATCH 1/1 statd: Fix test for foreground mode
daemon_init parameter has the opposite sense to code removed in commit 7addf9d
Signed-off-by Chris Mayo <[email protected]>
--- utils/statd/statd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
utils/statd/statd.c +1 -1
@@ -393,7 +393,7 @@ int main (int argc, char **argv)simulator (--argc, ++argv);/* simulator() does exit() */ #endif -daemon_init (!(run_mode &MODE_NODAEMON )); +daemon_init (run_mode &MODE_NODAEMON );if (run_mode &MODE_LOG_STDERR ) {xlog_syslog (0 );
Signature · 1 line
2.0.5
Quoted 6 lines · Chris Mayo
daemon_initparameter has the opposite sense to code removed in commit 7addf9dSigned-off-by Chris Mayo <[email protected]>--- utils/statd/statd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Committed...
Hmm.. I didn't see this because I did all my testing with systemd starting/stopping the daemons... I looks like I'm going to have to rejigger my tests a bit...
What distros/worlds don't systemd? I'll try to bring up a VM to do some testing in those worlds...
steved.
Quoted 15 lines
utils/statd/statd.c +1
-1@@ -393,7 +393,7 @@ int main (int argc, char **argv)simulator (--argc, ++argv);/* simulator() does exit() */ #endif -daemon_init (!(run_mode &MODE_NODAEMON )); +daemon_init (run_mode &MODE_NODAEMON );if (run_mode &MODE_LOG_STDERR ) {xlog_syslog (0 );