mirror of
https://github.com/adtools/clib2.git
synced 2025-12-08 14:59:05 +00:00
- Reworked the __putc() and putc() macros to reference the 'c' input
parameter only once, and to be free of side-effects when tinkering with the buffer position. - isatty() had the __fd_lock() call in the wrong place, which could have led to cleanup problems later. - The close action in the stdio, socket and termios hook code now also zaps the fd pointer itself after cleaning up the file descriptor table entry. git-svn-id: file:///Users/olsen/Code/migration-svn-zu-git/logical-line-staging/clib2/trunk@15211 87f5fb63-7c3d-0410-a384-fd976d0f7a62
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* $Id: socket_hook_entry.c,v 1.17 2006-11-16 10:41:15 obarthel Exp $
|
||||
* $Id: socket_hook_entry.c,v 1.18 2010-10-20 13:12:58 obarthel Exp $
|
||||
*
|
||||
* :ts=4
|
||||
*
|
||||
@ -145,6 +145,8 @@ __socket_hook_entry(
|
||||
/* And that's the last for this file descriptor. */
|
||||
memset(fd,0,sizeof(*fd));
|
||||
|
||||
fd = NULL;
|
||||
|
||||
break;
|
||||
|
||||
case file_action_seek:
|
||||
|
||||
Reference in New Issue
Block a user