MCPcopy Create free account
hub / github.com/apache/cloudberry / disable_sigpipe_trap

Function disable_sigpipe_trap

src/fe_utils/print.c:2925–2931  ·  view source on GitHub ↗

* 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. */

Source from the content-addressed store, hash-verified

2923 * No-op on Windows, where there's no SIGPIPE interrupts.
2924 */
2925void
2926disable_sigpipe_trap(void)
2927{
2928#ifndef WIN32
2929 pqsignal(SIGPIPE, SIG_IGN);
2930#endif
2931}
2932
2933/*
2934 * restore_sigpipe_trap

Callers 6

PageOutputFunction · 0.85
do_copyFunction · 0.85
PrintQueryTuplesFunction · 0.85
ProcessResultFunction · 0.85
ExecQueryUsingCursorFunction · 0.85
exec_command_writeFunction · 0.85

Calls 1

pqsignalFunction · 0.50

Tested by

no test coverage detected