summaryrefslogtreecommitdiff
path: root/os/osinit.c
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2012-07-09 16:34:39 -0700
committerKeith Packard <keithp@keithp.com>2012-07-09 16:34:39 -0700
commit023127915e6922bc53e4c768de760d8a4f25c07c (patch)
treee1559bd6c28e90d25579629c63234e474f9c413c /os/osinit.c
parentd6756e0298e660a0aca58d75bcf79471ce07a634 (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 'os/osinit.c')
-rw-r--r--os/osinit.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/os/osinit.c b/os/osinit.c
index 6cc040178..2eb1f7a8f 100644
--- a/os/osinit.c
+++ b/os/osinit.c
@@ -288,6 +288,7 @@ OsInit(void)
}
TimerInit();
OsVendorInit();
+ OsResetSignals();
/*
* No log file by default. OsVendorInit() should call LogInit() with the
* log file name if logging to a file is desired.