1: /*
   2:  * cc -O -o play play.c
   3:  * chog <play> play
   4:  * chmod u+s   play
   5:  * mv play /usr/games
   6:  */
   7: #include "config.h"
   8: #include <signal.h>
   9: 
  10: main (argc, argv)
  11:   int   argc;
  12:   char  **argv;
  13: 
  14: { int status;
  15: 
  16:   signal (SIGINT, SIG_IGN);
  17:   signal (SIGQUIT, SIG_IGN);
  18:   chdir (HACKDIR);
  19:   if  (fork ())
  20:   { wait (&status);
  21:     unlink ("rclk");
  22:     exit (0);
  23:   }
  24:   else
  25:   { argv[0] = "hack";
  26:     execv ("hack", argv);
  27:   }
  28: }

Defined functions

main defined in line 10; never used
Last modified: 1985-12-12
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 2151
Valid CSS Valid XHTML 1.0 Strict