commit bash-20110415 snapshot

This commit is contained in:
Chet Ramey
2011-12-29 13:06:34 -05:00
parent af32e54dd7
commit f6da9f8595
36 changed files with 5132 additions and 4847 deletions
+4 -1
View File
@@ -533,6 +533,8 @@ set_signal (sig, string)
int sig;
char *string;
{
sigset_t set, oset;
if (SPECIAL_TRAP (sig))
{
change_signal (sig, savestring (string));
@@ -563,9 +565,10 @@ set_signal (sig, string)
environment in which it is safe to do so. */
if ((sigmodes[sig] & SIG_NO_TRAP) == 0)
{
set_signal_handler (sig, SIG_IGN);
BLOCK_SIGNAL (sig, set, oset);
change_signal (sig, savestring (string));
set_signal_handler (sig, trap_handler);
UNBLOCK_SIGNAL (oset);
}
else
change_signal (sig, savestring (string));