diff options
author | Andrew Tridgell <tridge@samba.org> | 2000-09-11 07:02:43 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2000-09-11 07:02:43 +0000 |
commit | 2a34ee95f3929cff131db6c5a2b4820194c05b2d (patch) | |
tree | fecc764ce6abab264d18b9ee9f4028f2c2253a25 /source/nmbd | |
parent | fb48efaf830626f6ef05b88f5f8a74b932ceb257 (diff) | |
download | samba-2a34ee95f3929cff131db6c5a2b4820194c05b2d.tar.gz |
the first cut of the internal messaging system.
The motivation for this system is to replace the UDP message for
oplocks, but this commit only does the "set debug level" message.
Diffstat (limited to 'source/nmbd')
-rw-r--r-- | source/nmbd/nmbd.c | 19 | ||||
-rw-r--r-- | source/nmbd/nmbd_packets.c | 12 |
2 files changed, 0 insertions, 31 deletions
diff --git a/source/nmbd/nmbd.c b/source/nmbd/nmbd.c index af78af756eb..cd472967747 100644 --- a/source/nmbd/nmbd.c +++ b/source/nmbd/nmbd.c @@ -682,19 +682,6 @@ static void usage(char *pname) BlockSignals(True,SIGFPE); #endif - /* Setup the signals that allow the debug log level - to by dynamically changed. */ - - /* If we are using the malloc debug code we can't use - SIGUSR1 and SIGUSR2 to do debug level changes. */ -#if defined(SIGUSR1) - CatchSignal( SIGUSR1, SIGNAL_CAST sig_usr1 ); -#endif /* SIGUSR1 */ - -#if defined(SIGUSR2) - CatchSignal( SIGUSR2, SIGNAL_CAST sig_usr2 ); -#endif /* SIGUSR2 */ - while( EOF != (opt = getopt( argc, argv, "Vaos:T:I:C:bAB:N:Rn:l:d:Dp:hSH:G:f:" )) ) { @@ -850,12 +837,6 @@ static void usage(char *pname) /* We can only take signals in the select. */ BlockSignals( True, SIGTERM ); -#if defined(SIGUSR1) - BlockSignals( True, SIGUSR1); -#endif /* SIGUSR1 */ -#if defined(SIGUSR2) - BlockSignals( True, SIGUSR2); -#endif /* SIGUSR2 */ process(); diff --git a/source/nmbd/nmbd_packets.c b/source/nmbd/nmbd_packets.c index cf00dc9083f..605233f40d3 100644 --- a/source/nmbd/nmbd_packets.c +++ b/source/nmbd/nmbd_packets.c @@ -1808,24 +1808,12 @@ BOOL listen_for_packets(BOOL run_election) /* Prepare for the select - allow certain signals. */ BlockSignals(False, SIGTERM); -#if defined(SIGUSR1) - BlockSignals(False, SIGUSR1); -#endif /* SIGUSR1 */ -#if defined(SIGUSR2) - BlockSignals(False, SIGUSR2); -#endif /* SIGUSR2 */ selrtn = sys_select_intr(FD_SETSIZE,&fds,&timeout); /* We can only take signals when we are in the select - block them again here. */ BlockSignals(True, SIGTERM); -#if defined(SIGUSR1) - BlockSignals(True, SIGUSR1); -#endif /* SIGUSR1 */ -#if defined(SIGUSR2) - BlockSignals(True, SIGUSR2); -#endif /* SIGUSR2 */ if(selrtn > 0) { |