OSProcess file locking bug report and fix

David T. Lewis lewis at mail.msen.com
Mon May 1 11:06:33 UTC 2006

OSProcess file locking bug/fix

Affected platforms:
Squeak applications that rely on file locking for Unix, such as
Omnibase applications. Squeak with OSProcess on Unix/Linux using
unix file locking with Win32 file lock emulation disabled. The
problem does not occur if Win32 file lock emulation is enabled
(OSProcessAccessor emulateWin32FileLocking: true).

UnixOSProcessAccessor>>unlockFileRegion: may not unlock a file
or file region when Win32 compatibility is disabled
(OSProcessAccessor emulateWin32FileLocking: false).

Change set attached, "OSProcessFileLockPatch-dtl.2.cs".
An updated SUnit test that demonstrate the problem is at:
The most recent OSProcess (unreleased), including this patch and a
few unrelated updates, is at:

If you are not using OSProcess for file locking on a Unix/Linux
platform, you should ignore this update.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: OSProcessFileLockPatch-dtl.2.cs.gz
Type: application/x-gunzip
Size: 2353 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20060501/b0d32543/OSProcessFileLockPatch-dtl.2.cs.bin

More information about the Squeak-dev mailing list