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

- The socket exit code now calls the common stdio function which

flushes and shuts down all buffered and unbuffered files.


git-svn-id: file:///Users/olsen/Code/migration-svn-zu-git/logical-line-staging/clib2/trunk@14743 87f5fb63-7c3d-0410-a384-fd976d0f7a62
This commit is contained in:
Olaf Barthel
2004-09-29 17:03:57 +00:00
parent fef99a0181
commit f49a45f6a8
2 changed files with 5 additions and 11 deletions

View File

@ -28,6 +28,9 @@ c.lib 1.177 (29.9.2004)
- Added strtoll() and strtoull(), with further changes to <limits.h>
and <stdlib.h>.
- The socket exit code now calls the common stdio function which
flushes and shuts down all buffered and unbuffered files.
c.lib 1.175 (10.9.2004)

View File

@ -1,5 +1,5 @@
/*
* $Id: socket_init_exit.c,v 1.3 2004-09-29 14:17:44 obarthel Exp $
* $Id: socket_init_exit.c,v 1.4 2004-09-29 17:03:57 obarthel Exp $
*
* :ts=4
*
@ -111,16 +111,7 @@ CLIB_DESTRUCTOR(__socket_exit)
* does not happen, the stdio cleanup function will
* crash (with bells on).
*/
if(__fd != NULL && __num_fd > 0)
{
int i;
for(i = 0 ; i < __num_fd ; i++)
{
if(FLAG_IS_SET(__fd[i]->fd_Flags,FDF_IS_SOCKET) && FLAG_IS_SET(__fd[i]->fd_Flags,FDF_IN_USE))
close(i);
}
}
__close_all_files();
#if defined(__amigaos4__)
{