about summary refs log tree commit diff
path: root/src/libutil/util.hh
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2014-07-31T08·31+0200
committerEelco Dolstra <eelco.dolstra@logicblox.com>2014-07-31T08·31+0200
commit50dc1f5b71f7e0e4ba628904b9a47d9f9d875b3e (patch)
tree770054765d335695236e3c1c26f952a9aa76ff29 /src/libutil/util.hh
parent45f9a91e186d91edbf2bed7d27b7fa7227730596 (diff)
Restore default SIGPIPE handler before invoking ‘man’
Fixes NixOS/nixpkgs#3410.
Diffstat (limited to 'src/libutil/util.hh')
-rw-r--r--src/libutil/util.hh4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libutil/util.hh b/src/libutil/util.hh
index ad0d377a4f5e..64250c522a52 100644
--- a/src/libutil/util.hh
+++ b/src/libutil/util.hh
@@ -273,6 +273,10 @@ void closeMostFDs(const set<int> & exceptions);
 /* Set the close-on-exec flag for the given file descriptor. */
 void closeOnExec(int fd);
 
+/* Restore default handling of SIGPIPE, otherwise some programs will
+   randomly say "Broken pipe". */
+void restoreSIGPIPE();
+
 
 /* User interruption. */