Provide sigaction() for Windows.
Thomas Munro <tmunro@postgresql.org>
Provide sigaction() for Windows. Commit 9abb2bfc left behind code to block signals inside signal handlers on Windows, because our signal porting layer didn't have sigaction(). Provide a minimal implementation that is capable of blocking signals, to get rid of platform differences. See also related commit c94ae9d8. Discussion: https://postgr.es/m/CA%2BhUKGKKKfcgx6jzok9AYenp2TNti_tfs8FMoJpL8%2B0Gsy%3D%3D_A%40mail.gmail.com
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/libpq/pqsignal.c | modified | +0 −9 |
| src/backend/port/win32/signal.c | modified | +29 −12 |
| src/backend/postmaster/postmaster.c | modified | +4 −53 |
| src/include/libpq/pqsignal.h | modified | +14 −0 |
| src/port/pqsignal.c | modified | +6 −5 |
Discussion
- EINTR in ftruncate() 32 messages · 2022-07-01 → 2022-11-09