Re: File locking issues

From: Date: Tue, 04 Jan 2000 12:37:43 +0000
Subject: Re: File locking issues
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-14255@lists.php.net to get a copy of this message
On Tue, Jan 04, 2000 at 08:34:47AM +0000, Manuel Lemos wrote: > Hello, > > Since we have to pass an opened file handle to flock(), if the file > is closed with a pending lock, is that lock freed? File descriptors are closed either explicitly by the program or on process termination. PHP's flock inherits the semantics of the underlying implementation. For BSD-like systems using flock(2): When a file descriptor is closed, all locks associated with it are released. For SysV-like systems using POSIX fcntl(2): When a file descriptor is closed, all locks associated with the file the file descriptor pointed to are released. -- Regards, Sascha Schumann Consultant

« previous php.dev (#14255) next »