summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-10-07 21:48:38 +0200
committerVolker Lendecke <vl@samba.org>2010-10-08 21:11:46 +0200
commit613a0b6c00690a9509129be8ae6a78101e3a21e8 (patch)
tree5f40fa89435bdbf10095f8b3bb205f188276bfbe
parentef96bfe88530474a05fdb86955efa3a290f3d547 (diff)
downloadsamba-613a0b6c00690a9509129be8ae6a78101e3a21e8.tar.gz
samba-613a0b6c00690a9509129be8ae6a78101e3a21e8.tar.bz2
samba-613a0b6c00690a9509129be8ae6a78101e3a21e8.zip
s3: Hang the linux kernel oplocks off the NULL ctx
The destructor that is called removes the signal handler. But at process exit the signal handling is lost anyway.
-rw-r--r--source3/smbd/oplock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/oplock.c b/source3/smbd/oplock.c
index 03bf211015..2f8d72bf46 100644
--- a/source3/smbd/oplock.c
+++ b/source3/smbd/oplock.c
@@ -924,7 +924,7 @@ bool init_oplocks(struct messaging_context *msg_ctx)
#if HAVE_KERNEL_OPLOCKS_IRIX
koplocks = irix_init_kernel_oplocks(talloc_autofree_context());
#elif HAVE_KERNEL_OPLOCKS_LINUX
- koplocks = linux_init_kernel_oplocks(talloc_autofree_context());
+ koplocks = linux_init_kernel_oplocks(NULL);
#elif HAVE_ONEFS
koplocks = onefs_init_kernel_oplocks(talloc_autofree_context());
#endif