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: }