diff options
author | Keith Packard <keithp@keithp.com> | 2012-07-09 16:34:39 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2012-07-09 16:34:39 -0700 |
commit | 023127915e6922bc53e4c768de760d8a4f25c07c (patch) | |
tree | e1559bd6c28e90d25579629c63234e474f9c413c /include/os.h | |
parent | d6756e0298e660a0aca58d75bcf79471ce07a634 (diff) |
Reliably reset signals at server init time
Each DDX currently calls OsReleaseSIGIO in case it was suspended when
the server regen started. This causes a BUG to occur if SIGIO was
*not* blocked at that time. Instead of relying on each DDX, make the
OS layer reliably reset all signal state at server init time, ensuring
that signals are suitably unblocked and that the various signal state
counting variables are set back to zero.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'include/os.h')
-rw-r--r-- | include/os.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/os.h b/include/os.h index 34ca1f557..7701c3977 100644 --- a/include/os.h +++ b/include/os.h @@ -340,6 +340,9 @@ OsBlockSIGIO(void); extern _X_EXPORT void OsReleaseSIGIO(void); +extern void +OsResetSignals(void); + extern _X_EXPORT void OsAbort(void) _X_NORETURN; |