* gdb.base/sigall.c (main): Ensure all signals aren't blocked.
This commit is contained in:
parent
ae712b4271
commit
4b071aec13
@ -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.
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user