* gdb.base/sigall.c (main): Ensure all signals aren't blocked.

This commit is contained in:
Doug Evans 2008-02-03 00:42:55 +00:00
parent ae712b4271
commit 4b071aec13
2 changed files with 16 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2008-02-02 Doug Evans <dje@google.com>
* gdb.base/sigall.c (main): Ensure all signals aren't blocked.
2007-02-01 Joel Brobecker <brobecker@adacore.com>
* gdb.ada/sym_print_name: New test program.

View File

@ -1581,6 +1581,18 @@ main ()
set_debug_traps ();
breakpoint ();
#endif
#ifdef SIG_SETMASK
/* Ensure all the signals aren't blocked.
The environment in which the testsuite is run may have blocked some
for whatever reason. */
{
sigset_t newset;
sigemptyset (&newset);
sigprocmask (SIG_SETMASK, &newset, NULL);
}
#endif
signal (SIGABRT, handle_ABRT);
#ifdef SIGHUP
signal (SIGHUP, handle_HUP);