Imported from ../bash-2.05a.tar.gz.
This commit is contained in:
parent
28ef6c316f
commit
f73dda092b
303 changed files with 37069 additions and 28812 deletions
48
sig.c
48
sig.c
|
@ -54,7 +54,7 @@ extern int last_command_exit_value;
|
|||
extern int return_catch_flag;
|
||||
extern int loop_level, continuing, breaking;
|
||||
extern int parse_and_execute_level, shell_initialized;
|
||||
extern int interactive, interactive_shell, login_shell, startup_state;
|
||||
extern int startup_state;
|
||||
|
||||
/* Non-zero after SIGINT. */
|
||||
int interrupt_state;
|
||||
|
@ -71,7 +71,7 @@ sigset_t top_level_mask;
|
|||
/* When non-zero, we throw_to_top_level (). */
|
||||
int interrupt_immediately = 0;
|
||||
|
||||
static void initialize_shell_signals ();
|
||||
static void initialize_shell_signals __P((void));
|
||||
|
||||
void
|
||||
initialize_signals ()
|
||||
|
@ -86,7 +86,7 @@ initialize_signals ()
|
|||
void
|
||||
reinitialize_signals ()
|
||||
{
|
||||
initialize_shell_signals (1);
|
||||
initialize_shell_signals ();
|
||||
initialize_job_signals ();
|
||||
}
|
||||
|
||||
|
@ -105,89 +105,89 @@ struct termsig {
|
|||
and so forth. */
|
||||
static struct termsig terminating_signals[] = {
|
||||
#ifdef SIGHUP
|
||||
SIGHUP, NULL_HANDLER,
|
||||
{ SIGHUP, NULL_HANDLER },
|
||||
#endif
|
||||
|
||||
#ifdef SIGINT
|
||||
SIGINT, NULL_HANDLER,
|
||||
{ SIGINT, NULL_HANDLER },
|
||||
#endif
|
||||
|
||||
#ifdef SIGILL
|
||||
SIGILL, NULL_HANDLER,
|
||||
{ SIGILL, NULL_HANDLER },
|
||||
#endif
|
||||
|
||||
#ifdef SIGTRAP
|
||||
SIGTRAP, NULL_HANDLER,
|
||||
{ SIGTRAP, NULL_HANDLER },
|
||||
#endif
|
||||
|
||||
#ifdef SIGIOT
|
||||
SIGIOT, NULL_HANDLER,
|
||||
{ SIGIOT, NULL_HANDLER },
|
||||
#endif
|
||||
|
||||
#ifdef SIGDANGER
|
||||
SIGDANGER, NULL_HANDLER,
|
||||
{ SIGDANGER, NULL_HANDLER },
|
||||
#endif
|
||||
|
||||
#ifdef SIGEMT
|
||||
SIGEMT, NULL_HANDLER,
|
||||
{ SIGEMT, NULL_HANDLER },
|
||||
#endif
|
||||
|
||||
#ifdef SIGFPE
|
||||
SIGFPE, NULL_HANDLER,
|
||||
{ SIGFPE, NULL_HANDLER },
|
||||
#endif
|
||||
|
||||
#ifdef SIGBUS
|
||||
SIGBUS, NULL_HANDLER,
|
||||
{ SIGBUS, NULL_HANDLER },
|
||||
#endif
|
||||
|
||||
#ifdef SIGSEGV
|
||||
SIGSEGV, NULL_HANDLER,
|
||||
{ SIGSEGV, NULL_HANDLER },
|
||||
#endif
|
||||
|
||||
#ifdef SIGSYS
|
||||
SIGSYS, NULL_HANDLER,
|
||||
{ SIGSYS, NULL_HANDLER },
|
||||
#endif
|
||||
|
||||
#ifdef SIGPIPE
|
||||
SIGPIPE, NULL_HANDLER,
|
||||
{ SIGPIPE, NULL_HANDLER },
|
||||
#endif
|
||||
|
||||
#ifdef SIGALRM
|
||||
SIGALRM, NULL_HANDLER,
|
||||
{ SIGALRM, NULL_HANDLER },
|
||||
#endif
|
||||
|
||||
#ifdef SIGTERM
|
||||
SIGTERM, NULL_HANDLER,
|
||||
{ SIGTERM, NULL_HANDLER },
|
||||
#endif
|
||||
|
||||
#ifdef SIGXCPU
|
||||
SIGXCPU, NULL_HANDLER,
|
||||
{ SIGXCPU, NULL_HANDLER },
|
||||
#endif
|
||||
|
||||
#ifdef SIGXFSZ
|
||||
SIGXFSZ, NULL_HANDLER,
|
||||
{ SIGXFSZ, NULL_HANDLER },
|
||||
#endif
|
||||
|
||||
#ifdef SIGVTALRM
|
||||
SIGVTALRM, NULL_HANDLER,
|
||||
{ SIGVTALRM, NULL_HANDLER },
|
||||
#endif
|
||||
|
||||
#if 0
|
||||
#ifdef SIGPROF
|
||||
SIGPROF, NULL_HANDLER,
|
||||
{ SIGPROF, NULL_HANDLER },
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifdef SIGLOST
|
||||
SIGLOST, NULL_HANDLER,
|
||||
{ SIGLOST, NULL_HANDLER },
|
||||
#endif
|
||||
|
||||
#ifdef SIGUSR1
|
||||
SIGUSR1, NULL_HANDLER,
|
||||
{ SIGUSR1, NULL_HANDLER },
|
||||
#endif
|
||||
|
||||
#ifdef SIGUSR2
|
||||
SIGUSR2, NULL_HANDLER,
|
||||
{ SIGUSR2, NULL_HANDLER },
|
||||
#endif
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue