s3: Hang the linux kernel oplocks off the NULL ctx
authorVolker Lendecke <vl@samba.org>
Thu, 7 Oct 2010 19:48:38 +0000 (21:48 +0200)
committerVolker Lendecke <vl@samba.org>
Fri, 8 Oct 2010 19:11:46 +0000 (21:11 +0200)
The destructor that is called removes the signal handler. But at process
exit the signal handling is lost anyway.

source3/smbd/oplock.c

index 03bf21101548aa2ad15fac1bf5860164680ec2b2..2f8d72bf46ae230e9ac2150f4a1f07593ae1aafb 100644 (file)
@@ -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