Category : C Source Code
Archive   : F2CSRC.ZIP
Filename : SIG_DIE.C

 
Output of file : SIG_DIE.C contained in archive : F2CSRC.ZIP
#include "stdio.h"
#include "signal.h"

#ifndef SIGIOT
#define SIGIOT SIGABRT
#endif

void
sig_die(s, kill)
register char *s;
int kill;
{
/* print error message, then clear buffers */
extern void exit(), f_exit();
fprintf(stderr, "%s\n", s);
fflush(stderr);
f_exit();
fflush(stderr);

if(kill)
{
/* now get a core */
signal(SIGIOT, SIG_DFL);
abort();
}
else
exit(1);
}


  3 Responses to “Category : C Source Code
Archive   : F2CSRC.ZIP
Filename : SIG_DIE.C

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/