diff options
Diffstat (limited to 'src/bin/psql/help.c')
-rw-r--r-- | src/bin/psql/help.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/bin/psql/help.c b/src/bin/psql/help.c index 47fc0d8fc51..18f41e84fc5 100644 --- a/src/bin/psql/help.c +++ b/src/bin/psql/help.c @@ -176,7 +176,9 @@ slashUsage(void) (fout = popen(pagerenv, "w"))) { usePipe = true; +#ifndef WIN32 pqsignal(SIGPIPE, SIG_IGN); +#endif } else fout = stdout; @@ -220,7 +222,9 @@ slashUsage(void) if (usePipe) { pclose(fout); +#ifndef WIN32 pqsignal(SIGPIPE, SIG_DFL); +#endif } } |