X-Git-Url: http://git.maemo.org/git/?p=samba;a=blobdiff_plain;f=packaging%2FDebian%2Fdebian-woody%2Fpatches%2Fnmbd-signalling.patch;fp=packaging%2FDebian%2Fdebian-woody%2Fpatches%2Fnmbd-signalling.patch;h=ca04cce3bfafb9ce3937ca95db899450d90dfe6f;hp=0000000000000000000000000000000000000000;hb=6bca4ca307d55b6dc888e56cee47aebcddbce786;hpb=7fd70fa738b636089bcc6c961aa3eaa02f20dda2;ds=sidebyside diff --git a/packaging/Debian/debian-woody/patches/nmbd-signalling.patch b/packaging/Debian/debian-woody/patches/nmbd-signalling.patch new file mode 100644 index 0000000..ca04cce --- /dev/null +++ b/packaging/Debian/debian-woody/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();