|
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 m
Length: 548 (0x224) Types: TextFile Names: »mpssclean.c.orig«
└─⟦b20c6495f⟧ Bits:30007238 EUUGD18: Wien-båndet, efterår 1987 └─⟦this⟧ »EUUGD18/General/Mpss/mpssclean.c.orig«
#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); }