summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--job.c165
1 files changed, 0 insertions, 165 deletions
diff --git a/job.c b/job.c
index 3ed0569..003a473 100644
--- a/job.c
+++ b/job.c
@@ -116,16 +116,6 @@ extern int getloadavg ();
extern int start_remote_job_p ();
extern int start_remote_job (), remote_status ();
-
-#ifndef HAVE_SYS_SIGLIST
-static char *sys_siglist[NSIG];
-void init_siglist ();
-#else
-#ifndef SYS_SIGLIST_DECLARED
-extern char *sys_siglist[];
-#endif
-#endif
-
RETSIGTYPE child_handler ();
static void free_child (), start_job_command ();
static int load_too_high (), job_next_command ();
@@ -1279,161 +1269,6 @@ construct_command_argv (line, restp, file)
return argv;
}
-#ifndef HAVE_SYS_SIGLIST
-/* Initialize sys_siglist. */
-
-void
-init_siglist ()
-{
- char buf[100];
- register unsigned int i;
-
- for (i = 0; i < NSIG; ++i)
- switch (i)
- {
- default:
- sprintf (buf, "Signal %u", i);
- sys_siglist[i] = savestring (buf, strlen (buf));
- break;
- case SIGHUP:
- sys_siglist[i] = "Hangup";
- break;
- case SIGINT:
- sys_siglist[i] = "Interrupt";
- break;
- case SIGQUIT:
- sys_siglist[i] = "Quit";
- break;
- case SIGILL:
- sys_siglist[i] = "Illegal Instruction";
- break;
- case SIGTRAP:
- sys_siglist[i] = "Trace Trap";
- break;
- case SIGIOT:
- sys_siglist[i] = "IOT Trap";
- break;
-#ifdef SIGEMT
- case SIGEMT:
- sys_siglist[i] = "EMT Trap";
- break;
-#endif
-#ifdef SIGDANGER
- case SIGDANGER:
- sys_siglist[i] = "Danger signal";
- break;
-#endif
- case SIGFPE:
- sys_siglist[i] = "Floating Point Exception";
- break;
- case SIGKILL:
- sys_siglist[i] = "Killed";
- break;
- case SIGBUS:
- sys_siglist[i] = "Bus Error";
- break;
- case SIGSEGV:
- sys_siglist[i] = "Segmentation fault";
- break;
- case SIGSYS:
- sys_siglist[i] = "Bad Argument to System Call";
- break;
- case SIGPIPE:
- sys_siglist[i] = "Broken Pipe";
- break;
- case SIGALRM:
- sys_siglist[i] = "Alarm Clock";
- break;
- case SIGTERM:
- sys_siglist[i] = "Terminated";
- break;
-#if !defined (SIGIO) || SIGUSR1 != SIGIO
- case SIGUSR1:
- sys_siglist[i] = "User-defined signal 1";
- break;
-#endif
-#if !defined (SIGURG) || SIGUSR2 != SIGURG
- case SIGUSR2:
- sys_siglist[i] = "User-defined signal 2";
- break;
-#endif
-#ifdef SIGCLD
- case SIGCLD:
-#endif
-#if defined(SIGCHLD) && !defined(SIGCLD)
- case SIGCHLD:
-#endif
- sys_siglist[i] = "Child Process Exited";
- break;
-#ifdef SIGPWR
- case SIGPWR:
- sys_siglist[i] = "Power Failure";
- break;
-#endif
-#ifdef SIGVTALRM
- case SIGVTALRM:
- sys_siglist[i] = "Virtual Timer Alarm";
- break;
-#endif
-#ifdef SIGPROF
- case SIGPROF:
- sys_siglist[i] = "Profiling Alarm Clock";
- break;
-#endif
-#ifdef SIGIO
- case SIGIO:
- sys_siglist[i] = "I/O Possible";
- break;
-#endif
-#ifdef SIGWINDOW
- case SIGWINDOW:
- sys_siglist[i] = "Window System Signal";
- break;
-#endif
-#ifdef SIGSTOP
- case SIGSTOP:
- sys_siglist[i] = "Stopped (signal)";
- break;
-#endif
-#ifdef SIGTSTP
- case SIGTSTP:
- sys_siglist[i] = "Stopped";
- break;
-#endif
-#ifdef SIGCONT
- case SIGCONT:
- sys_siglist[i] = "Continued";
- break;
-#endif
-#ifdef SIGTTIN
- case SIGTTIN:
- sys_siglist[i] = "Stopped (tty input)";
- break;
-#endif
-#ifdef SIGTTOU
- case SIGTTOU:
- sys_siglist[i] = "Stopped (tty output)";
- break;
-#endif
-#ifdef SIGURG
- case SIGURG:
- sys_siglist[i] = "Urgent Condition on Socket";
- break;
-#endif
-#ifdef SIGXCPU
- case SIGXCPU:
- sys_siglist[i] = "CPU Limit Exceeded";
- break;
-#endif
-#ifdef SIGXFSZ
- case SIGXFSZ:
- sys_siglist[i] = "File Size Limit Exceeded";
- break;
-#endif
- }
-}
-#endif
-
#ifndef HAVE_DUP2
int
dup2 (old, new)