Linux NFS development
 help / color / mirror / Atom feed
* [PATCH] statd: Fix test for foreground mode
@ 2015-02-01 14:03 Chris Mayo
  2015-02-01 17:49 ` Steve Dickson
  0 siblings, 1 reply; 2+ messages in thread
From: Chris Mayo @ 2015-02-01 14:03 UTC (permalink / raw)
  To: linux-nfs

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

Signed-off-by: Chris Mayo <aklhfex@gmail.com>
---
 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


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] statd: Fix test for foreground mode
  2015-02-01 14:03 [PATCH] statd: Fix test for foreground mode Chris Mayo
@ 2015-02-01 17:49 ` Steve Dickson
  0 siblings, 0 replies; 2+ messages in thread
From: Steve Dickson @ 2015-02-01 17:49 UTC (permalink / raw)
  To: Chris Mayo, linux-nfs

On 02/01/2015 09:03 AM, Chris Mayo wrote:
> daemon_init parameter has the opposite sense to code removed in commit 7addf9d
> 
> Signed-off-by: Chris Mayo <aklhfex@gmail.com>
> ---
>  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.

> 
> 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);
> 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-02-01 17:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-01 14:03 [PATCH] statd: Fix test for foreground mode Chris Mayo
2015-02-01 17:49 ` Steve Dickson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox