2 Proprietary Rand Corporation
, 1981.
3 Further distribution of
this software
4 subject to the terms of the Rand
15 int pid
, wpid
, (*intr
)(), status
;
18 intr
= signal(SIGINT
, SIG_IGN
);
21 if((pid
= fork()) == 0) {
22 vec
[0] = r1bindex(lproc
, '/');
25 VOID
signal(SIGINT
, intr
);
27 fprintf(stderr
, "Can't exec ");
30 } else if(pid
== -1) {
31 fprintf(stderr
, "No forks!\n");
34 while((wpid
= wait(&status
)) != -1 && wpid
!= pid
) ;
35 VOID
signal(SIGINT
, intr
);