From 876039440f92b17f279d64c75bf08c297db30e76 Mon Sep 17 00:00:00 2001 From: Olaf Barthel Date: Sun, 24 Apr 2005 12:19:06 +0000 Subject: [PATCH] - 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 --- library/changes | 3 +++ library/stdio_record_locking.c | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/library/changes b/library/changes index 80b16a6..7826ed9 100644 --- a/library/changes +++ b/library/changes @@ -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) diff --git a/library/stdio_record_locking.c b/library/stdio_record_locking.c index 32fc621..6011f8d 100644 --- a/library/stdio_record_locking.c +++ b/library/stdio_record_locking.c @@ -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); }