From 392430b2c4ceb2e476abe2b3acc928581b2a1445 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 20 Aug 2014 15:12:58 +0200 Subject: nix-store -l: Automatically pipe output into $PAGER --- src/libutil/util.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/libutil') 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"); } -- cgit 1.4.1