diff options
author | Jeremy Allison <jra@samba.org> | 2003-05-15 17:37:49 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2003-05-15 17:37:49 +0000 |
commit | e325a2e16ad3d4e89e489943a7e68595d32793a9 (patch) | |
tree | 3ee4a93f409a9675de94b924d0593f0e370d27c8 /source3/smbd/oplock_linux.c | |
parent | 0f4b795d2824ce699927f42dc6ccdfa6c00e8561 (diff) | |
download | samba-e325a2e16ad3d4e89e489943a7e68595d32793a9.tar.gz samba-e325a2e16ad3d4e89e489943a7e68595d32793a9.tar.bz2 samba-e325a2e16ad3d4e89e489943a7e68595d32793a9.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 ef2d5a9c0c11a4e6d65bdebad5d9ea44dd000a68)
Diffstat (limited to 'source3/smbd/oplock_linux.c')
-rw-r--r-- | source3/smbd/oplock_linux.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/smbd/oplock_linux.c b/source3/smbd/oplock_linux.c index 84083dffc9..ac9cf5b8a6 100644 --- a/source3/smbd/oplock_linux.c +++ b/source3/smbd/oplock_linux.c @@ -284,6 +284,7 @@ struct kernel_oplocks *linux_init_kernel_oplocks(void) act.sa_handler = NULL; act.sa_sigaction = signal_handler; act.sa_flags = SA_SIGINFO; + sigemptyset( &act.sa_mask ); if (sigaction(RT_SIGNAL_LEASE, &act, NULL) != 0) { DEBUG(0,("Failed to setup RT_SIGNAL_LEASE handler\n")); return NULL; |