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

- __get_default_file() called __fd_unlock() without having called

__fd_lock() first. Ouch.

- Removed an unnecessary pair of __fd_lock()..__fd_unlock() calls from
  ttyname_r().


git-svn-id: file:///Users/olsen/Code/migration-svn-zu-git/logical-line-staging/clib2/trunk@15156 87f5fb63-7c3d-0410-a384-fd976d0f7a62
This commit is contained in:
Olaf Barthel
2006-09-27 11:54:54 +00:00
parent 9984a37cb4
commit bf4d3b763c
3 changed files with 10 additions and 8 deletions

View File

@ -1,5 +1,5 @@
/*
* $Id: fcntl_get_default_file.c,v 1.6 2006-09-12 14:16:44 obarthel Exp $
* $Id: fcntl_get_default_file.c,v 1.7 2006-09-27 11:54:54 obarthel Exp $
*
* :ts=4
*
@ -60,7 +60,7 @@ __get_default_file(int file_descriptor,long * file_ptr)
goto out;
}
__fd_unlock(fd);
__fd_lock(fd);
#if defined(__THREAD_SAFE)
{