5 /* (c) Copyright 1988 by the Massachusetts Institute of Technology. */
6 /* For copying and distribution information, please see the file */
7 /* <mit-copyright.h>. */
10 static char *rcsid_exec_002_c = "$Header$";
13 #include <mit-copyright.h>
21 extern CONNECTION conn;
22 extern int code, errno;
34 mask = sigblock(sigmask(SIGCHLD));
40 log_priority = log_ERROR;
41 com_err(whoami, errno, ": can't fork to run install script");
42 code = send_object(conn, (char *)&n, INTEGER_T);
47 execlp(str, str, (char *)NULL);
50 log_priority = log_ERROR;
51 com_err(whoami, n, ": %s", str);
52 (void) send_object(conn, (char *)&n, INTEGER_T);
57 } while (n != -1 && n != pid);
60 n = waitb.w_retcode + ERROR_TABLE_BASE_sms;
61 log_priority = log_ERROR;
62 com_err(whoami, n, " child exited with status %d", waitb.w_retcode);
63 code = send_object(conn, (char *)&n, INTEGER_T);