SOlaris and mlock()
Gerald (Jerry) Carter
jerry at samba.org
Wed Feb 21 11:42:46 GMT 2007
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Gerald (Jerry) Carter wrote:
> Jeremy & Guenther,
>
> Looks like this is still an issue. Have either of you
> tested the mlock() usage on non-Linux platforms? (e.g.
> Solaris). Doesn't the memory need to page aligned or
> something?
>
> failed to mlock memory: Invalid argument (22)
> Failed to store memory creds: NT_STATUS_INVALID_HANDLE
> Plain-text authentication for user AD\smitty returned
> NT_STATUS_INVALID_HANDLE (PAM: 4)
Ahh...
EINVAL
The addr argument is not a multiple of the page size
as returned by sysconf(3C).
Linux doesn't enforce this. Should be an easy fix.
herry
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.4 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFF3DA2IR7qMdg1EfYRAhtCAJ9LCKL5a7HQgOQqz7vPEjUXHeglhQCg5O8h
mmU5jfpUzo2EZTyKkUiAktI=
=b3mW
-----END PGP SIGNATURE-----
More information about the samba-technical
mailing list