[Samba] Migrating from 2.2.8a to 3.0.5 / Failed to setup RT_SIGNAL_LEASE handler

Gerald (Jerry) Carter jerry at samba.org
Mon Aug 16 12:45:27 GMT 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Mark Dixon wrote:

| I'm running Slackware 9.0 with a vanilla Linux kernel 2.4.25.
| Due to the announced EOL for 2.2.x, I'm trying to migrate our
| Samba hosts to version 3.0.5. These Samba hosts serve shares
| mounted off a seperate NFS fileserver.
|
| All is going well, except I've started getting the
| following messages in the smbd logs:
|
| ---- Start of snippet ----
|   Failed to setup RT_SIGNAL_LEASE handler
| ---- End of snippet ----

Best guess is that smbd knows the kernel supports oplocks
but the failure is caused by the failure to register the
signal handler (perhaps due to the mounted nfs file system).

Ther relevant code is :

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;
~   }
~   ....
}






cheers, jerry
- ---------------------------------------------------------------------
Alleviating the pain of Windows(tm)      ------- http://www.samba.org
GnuPG Key                ----- http://www.plainjoe.org/gpg_public.asc
"If we're adding to the noise, turn off this song"--Switchfoot (2003)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFBIKxnIR7qMdg1EfYRAqIPAJ9jJxQ4VjIvfuI6lLqIl33KH8J8bgCgzOt9
gbpY3KVUrkRa43c2ItRp+c0=
=NvZs
-----END PGP SIGNATURE-----


More information about the samba mailing list