mirror of
https://github.com/adtools/clib2.git
synced 2025-12-08 14:59:05 +00:00
- Moved the signal semaphore allocation/initialization/deallocation
into a dedicated module. This also has the advantage that it's harder to break code by accidentally forgetting to call InitSemaphore() after having allocated the memory for it. git-svn-id: file:///Users/olsen/Code/migration-svn-zu-git/logical-line-staging/clib2/trunk@14853 87f5fb63-7c3d-0410-a384-fd976d0f7a62
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* $Id: stdio_fdhookentry.c,v 1.15 2005-02-28 13:22:53 obarthel Exp $
|
||||
* $Id: stdio_fdhookentry.c,v 1.16 2005-03-03 14:20:55 obarthel Exp $
|
||||
*
|
||||
* :ts=4
|
||||
*
|
||||
@ -356,7 +356,7 @@ __fd_hook_entry(
|
||||
__fd_unlock(fd);
|
||||
|
||||
/* Free the lock semaphore now. */
|
||||
FreeVec(fd->fd_Lock);
|
||||
__delete_semaphore(fd->fd_Lock);
|
||||
|
||||
/* And that's the last for this file descriptor. */
|
||||
memset(fd,0,sizeof(*fd));
|
||||
|
||||
Reference in New Issue
Block a user