1
0
mirror of https://github.com/adtools/clib2.git synced 2025-12-08 14:59:05 +00:00

- The record locking semaphore could wind up getting added to the public

list twice. Fixed.


git-svn-id: file:///Users/olsen/Code/migration-svn-zu-git/logical-line-staging/clib2/trunk@14924 87f5fb63-7c3d-0410-a384-fd976d0f7a62
This commit is contained in:
Olaf Barthel
2005-04-24 12:19:06 +00:00
parent 0c553faff1
commit 876039440f
2 changed files with 5 additions and 1 deletions

View File

@ -8,6 +8,9 @@
- Changed how ftell() and fseek() are used, double-checking the return
value and the errno code.
- The record locking semaphore could wind up getting added to the public
list twice. Fixed.
c.lib 1.191 (9.4.2005)

View File

@ -1,5 +1,5 @@
/*
* $Id: stdio_record_locking.c,v 1.11 2005-04-24 09:53:12 obarthel Exp $
* $Id: stdio_record_locking.c,v 1.12 2005-04-24 12:19:06 obarthel Exp $
*
* :ts=4
*
@ -153,6 +153,7 @@ obtain_file_lock_semaphore(BOOL shared)
fls = AllocSysObjectTags(ASOT_SEMAPHORE,
ASOSEM_Size, sizeof(*fls),
ASOSEM_Name, semaphore_name_copy,
ASOSEM_Public, FALSE; /* we want to add it ourselves */
ASOSEM_Pri, 1,
TAG_END);
}