summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>1998-01-23 05:22:19 +0000
committerJeremy Allison <jra@samba.org>1998-01-23 05:22:19 +0000
commit66c668a6d308662dd02ea359551fb6d3867d12ca (patch)
tree9253e8ca269d884b9d247ff57edbfd6ecde4653f
parent55f400bd84f26027f5ec9b7fa06b22895de7557c (diff)
downloadsamba-66c668a6d308662dd02ea359551fb6d3867d12ca.tar.gz
samba-66c668a6d308662dd02ea359551fb6d3867d12ca.tar.bz2
samba-66c668a6d308662dd02ea359551fb6d3867d12ca.zip
nmbd.c, server.c: Added #ifndef MEM_MAN around code that sets the SIGUSR1
and SIGUSR2 signals. This allows the MEM_MAN code to be compiled in and the memory debug feature to be used with SIGUSR1. Jeremy. (This used to be commit 43ef7e3cb5bb971ff6ddf8230b08995e55b7c6e1)
-rw-r--r--source3/nmbd/nmbd.c4
-rw-r--r--source3/smbd/server.c5
2 files changed, 9 insertions, 0 deletions
diff --git a/source3/nmbd/nmbd.c b/source3/nmbd/nmbd.c
index 4497e0b15d..b6e4244cd0 100644
--- a/source3/nmbd/nmbd.c
+++ b/source3/nmbd/nmbd.c
@@ -580,6 +580,9 @@ int main(int argc,char *argv[])
/* 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. */
+#ifndef MEM_MAN
#if defined(SIGUSR1)
signal( SIGUSR1, SIGNAL_CAST sig_usr1 );
#endif /* SIGUSR1 */
@@ -587,6 +590,7 @@ int main(int argc,char *argv[])
#if defined(SIGUSR2)
signal( SIGUSR2, SIGNAL_CAST sig_usr2 );
#endif /* SIGUSR2 */
+#endif /* MEM_MAN */
while((opt = getopt(argc, argv, "as:T:I:C:bAi:B:N:Rn:l:d:Dp:hSH:G:f:")) != EOF)
{
diff --git a/source3/smbd/server.c b/source3/smbd/server.c
index 447a9a5469..01d379ebb3 100644
--- a/source3/smbd/server.c
+++ b/source3/smbd/server.c
@@ -5314,6 +5314,10 @@ static void usage(char *pname)
/* 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. */
+
+#ifndef MEM_MAN
#if defined(SIGUSR1)
signal( SIGUSR1, SIGNAL_CAST sig_usr1 );
#endif /* SIGUSR1 */
@@ -5321,6 +5325,7 @@ static void usage(char *pname)
#if defined(SIGUSR2)
signal( SIGUSR2, SIGNAL_CAST sig_usr2 );
#endif /* SIGUSR2 */
+#endif /* MEM_MAN */
DEBUG(3,("%s loaded services\n",timestring()));