DataMuseum.dk

Presents historical artifacts from the history of:

DKUUG/EUUG Conference tapes

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about DKUUG/EUUG Conference tapes

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - metrics - download
Index: T e

⟦8d57dc67b⟧ TextFile

    Length: 521 (0x209)
    Types: TextFile
    Names: »error.c«

Derivation

└─⟦b20c6495f⟧ Bits:30007238 EUUGD18: Wien-båndet, efterår 1987
    └─⟦this⟧ »EUUGD18/General/Kriegspiel/error.c« 

TextFile

/* 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);
	}
}