diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-08-20T13·12+0200 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-08-20T13·12+0200 |
commit | 392430b2c4ceb2e476abe2b3acc928581b2a1445 (patch) | |
tree | 30db8572f28c8def55f3b4dcce988a6ed4c778e9 /src/libutil | |
parent | 894fa5e42dd952caa702794964a13845ccf6f29a (diff) |
nix-store -l: Automatically pipe output into $PAGER
Diffstat (limited to 'src/libutil')
-rw-r--r-- | src/libutil/util.cc | 4 |
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"); } |