diff options
-rw-r--r-- | src/bin/psql/print.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/bin/psql/print.c b/src/bin/psql/print.c index f45ce677d08..a1d2e9709d1 100644 --- a/src/bin/psql/print.c +++ b/src/bin/psql/print.c @@ -2880,6 +2880,8 @@ PageOutput(int lines, const printTableOpt *topt) pagerpipe = popen(pagerprog, "w"); if (pagerpipe) return pagerpipe; + /* if popen fails, silently proceed without pager */ + restore_sigpipe_trap(); } } |