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:
parent
894fa5e42d
commit
392430b2c4
4 changed files with 56 additions and 2 deletions
|
@ -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");
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue