* restore_sigpipe_trap * * Restore normal SIGPIPE interrupt --- call this when done writing to a * temporary query output file that was (or might have been) a pipe. * * Note: within psql, we enable SIGPIPE interrupts unless the permanent query * output file is a pipe, in which case they should be kept off. This * approach works only because psql is not currently complicated enough to * ha
| 2946 | * No-op on Windows, where there's no SIGPIPE interrupts. |
| 2947 | */ |
| 2948 | void |
| 2949 | restore_sigpipe_trap(void) |
| 2950 | { |
| 2951 | #ifndef WIN32 |
| 2952 | pqsignal(SIGPIPE, always_ignore_sigpipe ? SIG_IGN : SIG_DFL); |
| 2953 | #endif |
| 2954 | } |
| 2955 | |
| 2956 | /* |
| 2957 | * set_sigpipe_trap_state |
no test coverage detected