* disable_sigpipe_trap * * Turn off SIGPIPE interrupt --- call this before writing to a temporary * query output file that is a pipe. * * No-op on Windows, where there's no SIGPIPE interrupts. */
| 2923 | * No-op on Windows, where there's no SIGPIPE interrupts. |
| 2924 | */ |
| 2925 | void |
| 2926 | disable_sigpipe_trap(void) |
| 2927 | { |
| 2928 | #ifndef WIN32 |
| 2929 | pqsignal(SIGPIPE, SIG_IGN); |
| 2930 | #endif |
| 2931 | } |
| 2932 | |
| 2933 | /* |
| 2934 | * restore_sigpipe_trap |
no test coverage detected