ctlinnd trace nnrpd?

Katsuhiro Kondou kondou at nec.co.jp
Wed Mar 7 14:20:44 UTC 2001


In article <985efl$mum$1 at krell.zikzak.de>,
	Bettina Fink <laura at hydrophil.de> wrote;

} nnrpd is running standalone (-D), is that the reason why
} it doesn't work?

Yes.

} I've restarted the master nnrpd after
} setting the tracing to "on", but that doesn't change any-
} thing. Is it necessary to start the master with -t? I will
} try ... But that wouldn't be so nice as a fast "ctlinnd
} trace n y", "ctlinnd trace n n" ...

'kill -HUP' may help, but wait... aha it works after forked.
It doesn't work for -D either.  Try attached which should
work for this case.
-- 
Katsuhiro Kondou

--- nnrpd/nnrpd.c.orig	2001/03/05 02:11:30
+++ nnrpd/nnrpd.c	2001/03/07 14:17:20
@@ -958,6 +958,9 @@
 
 	/* Set signal handle to care for dead children */
 	(void)xsignal(SIGCHLD, WaitChild);
+
+	/* Arrange to toggle tracing. */
+	(void)xsignal(SIGHUP, ToggleTrace);
  
 	TITLEset("nnrpd: accepting connections");
  	
@@ -1001,6 +1004,8 @@
  
     } else {
 	SetupDaemon();
+	/* Arrange to toggle tracing. */
+	(void)xsignal(SIGHUP, ToggleTrace);
     }/* DaemonMode */
 
     /* Setup. */
@@ -1058,9 +1063,6 @@
 
     /* Catch SIGPIPE so that we can exit out of long write loops */
     (void)xsignal(SIGPIPE, CatchPipe);
-
-    /* Arrange to toggle tracing. */
-    (void)xsignal(SIGHUP, ToggleTrace);
 
     /* Get permissions and see if we can talk to this client */
     StartConnection();


More information about the inn-workers mailing list