2 Proprietary Rand Corporation
, 1981.
3 Further distribution of
this software
4 subject to the terms of the Rand
8 #include "../h/errors.h"
17 /* if str is non null, exec it as a command to the shell */
18 /* and return immediately */
19 /* if str is the null string, simply spawn a sub-shell */
21 if (str
== 0 || *str
== 0) {
30 execl("/bin/sh", "-", a2
, a3
, 0);
34 type(2, errno
== EAGAIN
? "system": "your");
35 type(2, " process limit reached\n");
40 while(pid
!= wait(&st
));