mirror of
https://github.com/NixOS/nix
synced 2025-06-27 04:21:16 +02:00
parent
49009573bc
commit
90dc50b07c
2 changed files with 2 additions and 1 deletions
|
@ -110,7 +110,7 @@ static void initAndRun(int argc, char * * argv)
|
|||
/* Catch SIGINT. */
|
||||
struct sigaction act;
|
||||
act.sa_handler = sigintHandler;
|
||||
sigfillset(&act.sa_mask);
|
||||
sigemptyset(&act.sa_mask);
|
||||
act.sa_flags = 0;
|
||||
if (sigaction(SIGINT, &act, 0))
|
||||
throw SysError("installing handler for SIGINT");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue