[patch] Auto session bus launch from libdbus
Daniel P. Berrange
dan at berrange.com
Sun Sep 10 16:23:06 PDT 2006
On Sun, Sep 10, 2006 at 11:42:53PM +0200, Thiago Macieira wrote:
> * I have no idea if flock(2) is portable to the other Unix platforms or if
> it's enough to guarantee exclusive access on NFS mounts. Someone with
> better knowledge, please come forward.
flock() is bad because it does not work on NFS. fcntl() with the F_SETLK
is portable & works across all filesystems, although the set of fields in
the 'struct flock' parameter does change across OS. You can also use the
POSIX call lockf() which on Linux is a thin wrapper to fcntl().
Regards,
Dan.
--
|=- GPG key: http://www.berrange.com/~dan/gpgkey.txt -=|
|=- Perl modules: http://search.cpan.org/~danberr/ -=|
|=- Projects: http://freshmeat.net/~danielpb/ -=|
|=- berrange at redhat.com - Daniel Berrange - dan at berrange.com -=|
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.freedesktop.org/archives/dbus/attachments/20060911/489c257f/attachment.pgp
More information about the dbus
mailing list