mirror of
https://github.com/adtools/clib2.git
synced 2025-12-08 14:59:05 +00:00
- Whether or not stdio console streams are blocking or non-blocking
is now determined at initialization time. The I/O mode is restored before the program exits. Previously, any changes to the I/O mode would persist. git-svn-id: file:///Users/olsen/Code/migration-svn-zu-git/logical-line-staging/clib2/trunk@14801 87f5fb63-7c3d-0410-a384-fd976d0f7a62
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* $Id: stdio_fdhookentry.c,v 1.6 2005-01-09 15:58:02 obarthel Exp $
|
||||
* $Id: stdio_fdhookentry.c,v 1.7 2005-01-12 09:15:50 obarthel Exp $
|
||||
*
|
||||
* :ts=4
|
||||
*
|
||||
@ -1848,9 +1848,9 @@ __fd_hook_entry(
|
||||
SHOWMSG("changing the mode");
|
||||
|
||||
if(message->arg != 0)
|
||||
mode = 0; /* buffered mode */
|
||||
mode = DOSFALSE; /* buffered mode */
|
||||
else
|
||||
mode = 1; /* single character mode */
|
||||
mode = DOSTRUE; /* single character mode */
|
||||
|
||||
if(CANNOT SetMode(fd->fd_DefaultFile,mode))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user