[PATCH] statd: Fix test for foreground mode

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

Signed-off-by: Chris Mayo <aklhfex@xxxxxxxxx>
---
 utils/statd/statd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/utils/statd/statd.c b/utils/statd/statd.c
index 60ce6d1..6ff28f4 100644
--- a/utils/statd/statd.c
+++ b/utils/statd/statd.c
@@ -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);
-- 
2.0.5

--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Filesystem Development]     [Linux USB Development]     [Linux Media Development]     [Video for Linux]     [Linux NILFS]     [Linux Audio Users]     [Yosemite Info]     [Linux SCSI]

  Powered by Linux