[Samba] Failed to setup RT_SIGNAL_LEASE handler

jra at dp.samba.org jra at dp.samba.org
Fri Jun 6 18:45:36 GMT 2003


On Fri, Jun 06, 2003 at 02:37:44PM -0400, Zing wrote:
> On Tue, 3 Jun 2003 jra at dp.samba.org wrote:
> 
> > No, he's not thinking we're a scsi driver, the RT_SIGNAL_LEASE handler
> > is samba trying to set up an kernel oplock (lease). Can you do an strace
> > and let us know what error message it gets back ?
> 
> I was seeing sigaction fail in redhat 9 with 'invalid argument'... I did
> the following and oplocks succeeded:
> 
> --- samba-2.2.7a/source/smbd/oplock_linux.c.orig	2003-06-05 14:40:49.000000000 -0400
> +++ samba-2.2.7a/source/smbd/oplock_linux.c	2003-06-06 13:34:29.000000000 -0400
> @@ -40,7 +40,7 @@
>  #endif
>  
>  #ifndef RT_SIGNAL_LEASE
> -#define RT_SIGNAL_LEASE 33
> +#define RT_SIGNAL_LEASE SIGRTMIN
>  #endif
>  
>  #ifndef F_SETSIG
> --- samba-2.2.7a/source/smbd/notify_kernel.c.orig	2003-06-06 13:33:56.000000000 -0400
> +++ samba-2.2.7a/source/smbd/notify_kernel.c	2003-06-06 13:37:44.000000000 -0400
> @@ -39,7 +39,7 @@
>  
>  
>  #ifndef RT_SIGNAL_NOTIFY
> -#define RT_SIGNAL_NOTIFY 34
> +#define RT_SIGNAL_NOTIFY SIGRTMIN+1
>  #endif
>  
>  #ifndef F_SETSIG

What we're using in Samba 3.0 is :

#ifndef RT_SIGNAL_NOTIFY
#define RT_SIGNAL_NOTIFY (SIGRTMIN+2)
#endif

Jeremy.



More information about the samba mailing list