|
|
DataMuseum.dkPresents historical artifacts from the history of: DKUUG/EUUG Conference tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about DKUUG/EUUG Conference tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - downloadIndex: T e
Length: 521 (0x209)
Types: TextFile
Names: »error.c«
└─⟦b20c6495f⟧ Bits:30007238 EUUGD18: Wien-båndet, efterår 1987
└─⟦this⟧ »EUUGD18/General/Kriegspiel/error.c«
/* error.c */
#include "externs.h"
#include <signal.h>
error (s)
char *s;
{
clear ();
refresh ();
endwin ();
if (errno == EPIPE && s != (char *) NULL)
dead = TRUE;
else {
if (s != (char *) NULL)
perror (s);
send (sock, "very dead\3\0", 10, 0);
send (sock, "very dead\3\0", 10, 0);
send (sock, "very dead\3\0", 10, 0);
fflush (stdout);
fflush (stderr);
if (shutdown (sock, 2) < 0 && errno != EINVAL)
perror ("not shutdown");
if (close (sock) < 0)
perror ("not closed");
exit (0);
}
}