home *** CD-ROM | disk | FTP | other *** search
/ minnie.tuhs.org / unixen.tar / unixen / PDP-11 / Distributions / ucb / spencer_2bsd.tar.gz / 2bsd.tar / src / px / exit.c < prev    next >
C/C++ Source or Header  |  1980-02-17  |  288b  |  19 lines

  1. /* (c) 1979 Regents of the University of California */
  2. exit(c)
  3.     int c;
  4. {
  5.  
  6.     if (fork() == 0) {
  7.         char *cp = "-00";
  8.         if (c > 10) {
  9.             cp[1] |= (c / 10) % 10;
  10.             cp[2] |= c % 10;
  11.         } else {
  12.             cp[1] |= c;
  13.             cp[2] = 0;
  14.         }
  15.         execl("/usr/lib/gather", "gather", cp, "px", 0);
  16.     }
  17.     _exit(c);
  18. }
  19.