summaryrefslogtreecommitdiff
path: root/packaging/Debian/debian-unstable/patches/nmbd-signalling.patch
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2004-05-14 12:42:42 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:51:35 -0500
commitc32c36d96f3a7863ab8514456e8a0eb9e4839264 (patch)
treedfc31bfe53dea0b3460f8c5f823d8d9ed65c13ec /packaging/Debian/debian-unstable/patches/nmbd-signalling.patch
parent400bed7a68ccdeeb8c50326e817788e01b155907 (diff)
downloadsamba-c32c36d96f3a7863ab8514456e8a0eb9e4839264.tar.gz
samba-c32c36d96f3a7863ab8514456e8a0eb9e4839264.tar.bz2
samba-c32c36d96f3a7863ab8514456e8a0eb9e4839264.zip
r730: move the current debian dir to debian-unstable
(This used to be commit 65022f1dde7012a8c8c1872ad87184531973b5c5)
Diffstat (limited to 'packaging/Debian/debian-unstable/patches/nmbd-signalling.patch')
-rw-r--r--packaging/Debian/debian-unstable/patches/nmbd-signalling.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/packaging/Debian/debian-unstable/patches/nmbd-signalling.patch b/packaging/Debian/debian-unstable/patches/nmbd-signalling.patch
new file mode 100644
index 0000000000..ca04cce3bf
--- /dev/null
+++ b/packaging/Debian/debian-unstable/patches/nmbd-signalling.patch
@@ -0,0 +1,20 @@
+diff -uNr samba-2.999+3.0.alpha21.orig/source/nmbd/nmbd_subnetdb.c samba-2.999+3.0.alpha21/source/nmbd/nmbd_subnetdb.c
+--- samba-2.999+3.0.alpha21.orig/source/nmbd/nmbd_subnetdb.c 2002-11-26 20:54:19.000000000 -0600
++++ samba-2.999+3.0.alpha21/source/nmbd/nmbd_subnetdb.c 2002-12-16 23:34:13.000000000 -0600
+@@ -214,12 +214,16 @@
+ extern struct in_addr loopback_ip;
+
+ if(num_interfaces == 0) {
++ void (*old_handler)(int);
++
+ DEBUG(0,("create_subnets: No local interfaces !\n"));
+ DEBUG(0,("create_subnets: Waiting for an interface to appear ...\n"));
++ old_handler = CatchSignal( SIGTERM, SIGNAL_CAST SIG_DFL );
+ while (iface_count() == 0) {
+ sleep(5);
+ load_interfaces();
+ }
++ CatchSignal( SIGTERM, SIGNAL_CAST old_handler );
+ }
+
+ num_interfaces = iface_count();