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 m

⟦26b8aa9e4⟧ TextFile

    Length: 548 (0x224)
    Types: TextFile
    Names: »mpssclean.c.orig«

Derivation

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

TextFile

#include <stdio.h>
#include "files.h"
#include <signal.h>


main()
{
int rpid;
char string[15];
char remove[80];
FILE *f, *fopen();

sprintf(remove,"rm %s\n",PLAYERFILE);
system(remove);
sprintf(remove,"rm %s\n",LOCK);
system(remove);
sprintf(remove,"rm %s\n",PLAYERSCOREFILE);
system(remove);
system("stty -cbreak echo");
if ((f=fopen(MASTERPIDFILE,"r"))!=NULL) 
	{
	fgets(string,15,f); /*get pid*/
	sscanf(string,"%d\n",&rpid);
	kill(rpid,9);
	fprintf(stdout,"killed\n");
	fclose(f);
	}
sprintf(remove,"rm %s\n",MASTERPIDFILE);
system(remove);
}