mirror of
https://github.com/adtools/clib2.git
synced 2025-12-08 14:59:05 +00:00
- Extended the thread-safety locking to the file descriptors.
git-svn-id: file:///Users/olsen/Code/migration-svn-zu-git/logical-line-staging/clib2/trunk@14844 87f5fb63-7c3d-0410-a384-fd976d0f7a62
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* $Id: stdio_remove_fd_alias.c,v 1.1 2005-02-20 13:19:40 obarthel Exp $
|
||||
* $Id: stdio_remove_fd_alias.c,v 1.2 2005-02-28 13:22:53 obarthel Exp $
|
||||
*
|
||||
* :ts=4
|
||||
*
|
||||
@ -42,6 +42,8 @@ __remove_fd_alias(struct fd * fd)
|
||||
{
|
||||
assert( fd != NULL );
|
||||
|
||||
__stdio_lock();
|
||||
|
||||
if(fd->fd_Original != NULL) /* this is an alias */
|
||||
{
|
||||
struct fd * list_fd;
|
||||
@ -78,4 +80,6 @@ __remove_fd_alias(struct fd * fd)
|
||||
list_fd->fd_Original = first_alias;
|
||||
}
|
||||
}
|
||||
|
||||
__stdio_unlock();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user