summaryrefslogtreecommitdiffstats
path: root/source3/smbd/notify_kernel.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2003-05-15 17:37:52 +0000
committerJeremy Allison <jra@samba.org>2003-05-15 17:37:52 +0000
commit3ededa5f7bd8c039346841d7902b5344604a9d9a (patch)
treee93fce6eccd10194a10c3c6e1b58f6ac0f8faffb /source3/smbd/notify_kernel.c
parent5ffd33df94855b57dd3a04e2fd6bbf10f3bf0e89 (diff)
downloadsamba-3ededa5f7bd8c039346841d7902b5344604a9d9a.tar.gz
samba-3ededa5f7bd8c039346841d7902b5344604a9d9a.tar.xz
samba-3ededa5f7bd8c039346841d7902b5344604a9d9a.zip
Fix from Steve G <linux_4ever@yahoo.com>. Ensure sigemptyset is called on
the sa_mask to prevent valgrind complaints. Jeremy. (This used to be commit e065c3a58f5c7f2612596574046a73869183dbd3)
Diffstat (limited to 'source3/smbd/notify_kernel.c')
-rw-r--r--source3/smbd/notify_kernel.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/source3/smbd/notify_kernel.c b/source3/smbd/notify_kernel.c
index efe93de5afb..8fcc18a09f9 100644
--- a/source3/smbd/notify_kernel.c
+++ b/source3/smbd/notify_kernel.c
@@ -217,13 +217,14 @@ struct cnotify_fns *kernel_notify_init(void)
ZERO_STRUCT(act);
- act.sa_handler = NULL;
- act.sa_sigaction = signal_handler;
- act.sa_flags = SA_SIGINFO;
- if (sigaction(RT_SIGNAL_NOTIFY, &act, NULL) != 0) {
+ act.sa_handler = NULL;
+ act.sa_sigaction = signal_handler;
+ act.sa_flags = SA_SIGINFO;
+ sigemptyset( &act.sa_mask );
+ if (sigaction(RT_SIGNAL_NOTIFY, &act, NULL) != 0) {
DEBUG(0,("Failed to setup RT_SIGNAL_NOTIFY handler\n"));
return NULL;
- }
+ }
if (!kernel_notify_available())
return NULL;