*/
#ifndef lint
-static char *rcsid_sms_starter_c = "$Header$";
+static char *rcsid_mr_starter_c = "$Header$";
#endif lint
#include <mit-copyright.h>
#include <sys/wait.h>
#include <sys/signal.h>
#include <sys/ioctl.h>
-#include <sms_app.h>
+#include <moira_site.h>
#define PROG "dcm"
int rdpipe[2];
-char *sigdescr[] = {
- 0,
- "hangup",
- "interrupt",
- "quit",
- "illegal instruction",
- "trace/BPT trap",
- "IOT trap",
- "EMT trap",
- "floating exception",
- "kill",
- "bus error",
- "segmentation violation",
- "bad system call",
- "broken pipe",
- "alarm clock",
- "termination",
- "urgent I/O condition",
- "stopped",
- "stopped",
- "continued",
- "child exited",
- "stopped (tty input)",
- "stopped (tty output)",
- "I/O possible",
- "cputime limit exceeded",
- "filesize limit exceeded",
- "virtual timer expired",
- "profiling timer expired",
- "window size changed",
- "signal 29",
- "user defined signal 1",
- "user defined signal 2",
- "signal 32"
-};
+extern char *sys_siglist[];
cleanup()
{
}
if (WIFSIGNALED(stat)) {
sprintf(buf, "exited on %s signal%s\n",
- sigdescr[stat.w_termsig],
+ sys_siglist[stat.w_termsig],
(stat.w_coredump?"; Core dumped":0));
}
write(rdpipe[1], buf, strlen(buf));
}
pipe(rdpipe);
if (fork()) {
- exit();
+ exit(0);
}
chdir("/");
close(0);