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

- Dropped the special flag variable used by the abort() function that

tracks whether or not console output is possible. We now use the
  global "__no_standard_io" instead.


git-svn-id: file:///Users/olsen/Code/migration-svn-zu-git/logical-line-staging/clib2/trunk@14794 87f5fb63-7c3d-0410-a384-fd976d0f7a62
This commit is contained in:
Olaf Barthel
2005-01-09 10:10:41 +00:00
parent 5cf80326bc
commit fbc6d94840
11 changed files with 29 additions and 40 deletions

View File

@ -1,5 +1,5 @@
/*
* $Id: socket_init_exit.c,v 1.7 2005-01-02 09:07:08 obarthel Exp $
* $Id: socket_init_exit.c,v 1.8 2005-01-09 10:10:41 obarthel Exp $
*
* :ts=4
*
@ -244,15 +244,13 @@ __socket_init(void)
SHOWVALUE(daemon_socket);
/* Whatever happens, the following likely won't end up
* in the console...
*/
__termination_message_disabled = TRUE;
/* Shut down the three standard I/O streams. */
for(i = STDIN_FILENO ; i <= STDERR_FILENO ; i++)
close(i);
/* The standard I/O streams are no longer attached to a console. */
__no_standard_io = TRUE;
/* Put the socket into the three standard I/O streams. */
for(i = STDIN_FILENO ; i <= STDERR_FILENO ; i++)
{
@ -284,9 +282,6 @@ __socket_init(void)
/* This program now runs as an internet superserver client (daemon). */
__is_daemon = TRUE;
/* The standard I/O streams are no longer attached to a console. */
__no_standard_io = TRUE;
}
}