7 static char *rcsid_exec_002_c = "$Header$";
14 #include "sms_update_int.h"
18 extern CONNECTION conn;
19 extern int code, errno;
35 log_priority = log_ERROR;
36 com_err(whoami, errno, ": can't fork to run install script");
37 code = send_object(conn, (char *)&n, INTEGER_T);
42 execlp(str, str, (char *)NULL);
44 log_priority = log_ERROR;
45 com_err(whoami, n, ": %s", str);
46 (void) send_object(conn, (char *)&n, INTEGER_T);
51 } while (n != -1 && n != pid);
53 log_priority = log_ERROR;
54 com_err(whoami, 0, "child exited with status %d", waitb.w_status);
55 code = send_object(conn, (char *)&n, INTEGER_T);