1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-27 08:31:16 +02:00

nix-store -l: Automatically pipe output into $PAGER

This commit is contained in:
Eelco Dolstra 2014-08-20 15:12:58 +02:00
parent 894fa5e42d
commit 392430b2c4
4 changed files with 56 additions and 2 deletions

View file

@ -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");
}