diff options
Diffstat (limited to 'os/utils.c')
-rw-r--r-- | os/utils.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/os/utils.c b/os/utils.c index b50cbdbdf..a6f6ef549 100644 --- a/os/utils.c +++ b/os/utils.c @@ -1242,6 +1242,19 @@ OsReleaseSignals(void) #endif } +void +OsResetSignals(void) +{ +#ifdef SIG_BLOCK + while (BlockedSignalCount > 0) + OsReleaseSignals(); +#ifdef SIGIO + while (sigio_blocked > 0) + OsReleaseSIGIO(); +#endif +#endif +} + /* * Pending signals may interfere with core dumping. Provide a * mechanism to block signals when aborting. |