Skip to contentSkip to conversation

statd: Fix test for foreground mode

PATCH In review Chris Mayo 2 participants 2 messages Feb 1, 2015

Subsystems (2)
lore
Share & tools
lore

Chris Mayo

author
#0 lore raw

PATCH 1/1 statd: Fix test for foreground mode

daemon_init parameter has the opposite sense to code removed in commit 7addf9d

---
 utils/statd/statd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
utils/statd/statd.c +1 -1
index 60ce6d1..6ff28f4 100644
@@ -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
#1 lore raw
Quoted 6 lines · Chris Mayo

daemon_init parameter has the opposite sense to code removed in commit 7addf9d

---
 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
index 60ce6d1..6ff28f4 100644
@@ -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);