git-svn-id: svn://svn.valgrind.org/valgrind/trunk@475
VG_(printf)("restoring handler 0x%x for signal %d\n",
(Addr)(sa.ksa_handler), i );
- /* Get the old host action */
+ /* Set the old host action */
ret = VG_(ksigaction)(i, &sa, NULL);
- vg_assert(ret == 0);
-
+ if (i != VKI_SIGKILL && i != VKI_SIGSTOP)
+ vg_assert(ret == 0);
}
/* Restore the sig alt stack. */
VG_(printf)("restoring handler 0x%x for signal %d\n",
(Addr)(sa.ksa_handler), i );
- /* Get the old host action */
+ /* Set the old host action */
ret = VG_(ksigaction)(i, &sa, NULL);
- vg_assert(ret == 0);
-
+ if (i != VKI_SIGKILL && i != VKI_SIGSTOP)
+ vg_assert(ret == 0);
}
/* Restore the sig alt stack. */