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 >
Wrap
C/C++ Source or Header
|
1980-02-17
|
288b
|
19 lines
/* (c) 1979 Regents of the University of California */
exit(c)
int c;
{
if (fork() == 0) {
char *cp = "-00";
if (c > 10) {
cp[1] |= (c / 10) % 10;
cp[2] |= c % 10;
} else {
cp[1] |= c;
cp[2] = 0;
}
execl("/usr/lib/gather", "gather", cp, "px", 0);
}
_exit(c);
}