about summary refs log tree commit diff
path: root/src/libutil/util.cc
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2014-08-20T13·12+0200
committerEelco Dolstra <eelco.dolstra@logicblox.com>2014-08-20T13·12+0200
commit392430b2c4ceb2e476abe2b3acc928581b2a1445 (patch)
tree30db8572f28c8def55f3b4dcce988a6ed4c778e9 /src/libutil/util.cc
parent894fa5e42dd952caa702794964a13845ccf6f29a (diff)
nix-store -l: Automatically pipe output into $PAGER
Diffstat (limited to 'src/libutil/util.cc')
-rw-r--r--src/libutil/util.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libutil/util.cc b/src/libutil/util.cc
index ed283fb8c8f6..14aab7cded32 100644
--- a/src/libutil/util.cc
+++ b/src/libutil/util.cc
@@ -931,11 +931,11 @@ void closeOnExec(int fd)
 
 void restoreSIGPIPE()
 {
-    struct sigaction act, oact;
+    struct sigaction act;
     act.sa_handler = SIG_DFL;
     act.sa_flags = 0;
     sigemptyset(&act.sa_mask);
-    if (sigaction(SIGPIPE, &act, &oact)) throw SysError("resetting SIGPIPE");
+    if (sigaction(SIGPIPE, &act, 0)) throw SysError("resetting SIGPIPE");
 }