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: unistd_ttyname_r.c,v 1.4 2006-09-25 14:05:31 obarthel Exp $
* $Id: unistd_ttyname_r.c,v 1.5 2006-09-27 11:54:54 obarthel Exp $
*
* :ts=4
*
@ -111,12 +111,8 @@ ttyname_r(int file_descriptor,char *name,size_t buflen)
break;
}
__fd_lock(fd);
if(file != ZERO && IsInteractive(file))
is_tty = TRUE;
__fd_unlock(fd);
}
else
{