lix/src
Matthew Bauer 102434e4cb Disable SA_RESTART for some signals on macOS
Disables the SA_RESTART behavior on macOS which causes:

> Restarting of pending calls is requested by setting the SA_RESTART bit
> in sa_flags. The affected system calls include read(2), write(2),
> sendto(2), recvfrom(2), sendmsg(2) and recvmsg(2) on a communications
> channel or a slow device (such as a terminal, but not a regular file)
> and during a wait(2) or ioctl(2).

From: https://man.openbsd.org/sigaction#SA_RESTART

This being set on macOS caused a bug where read() calls to the daemon
socket were blocking after a SIGINT was received. As a result,
checkInterrupt was never reached even though the signal was received
by the signal handler thread.

On Linux, SA_RESTART is disabled by default. This probably effects
other BSDs but I don’t have the ability to test it there right now.
2022-09-03 00:27:16 -05:00
..
build-remote Generalize DerivationType in preparation for impure derivations 2022-03-18 14:59:56 +00:00
libcmd Merge pull request #6968 from fricklerhandwerk/man-no-weblinks 2022-08-29 08:46:35 +02:00
libexpr Revert "Merge pull request #6621 from Kha/nested-follows" 2022-09-01 15:26:19 +02:00
libfetchers Don't pass --force to 'git add' 2022-08-17 16:59:02 +02:00
libmain Disable SA_RESTART for some signals on macOS 2022-09-03 00:27:16 -05:00
libstore Merge pull request #6954 from winterqt/darwin-sandbox-trustd 2022-08-26 11:45:00 +02:00
libutil Fix progress bar flicker with -L 2022-08-24 22:36:40 +02:00
nix Fix progress bar flicker with -L 2022-08-24 22:36:40 +02:00
nix-build nix-shell: specify which outputs from bashInteractive to build 2022-08-09 22:54:22 -04:00
nix-channel Fix segfault in headerCallback() 2022-03-03 11:11:16 +01:00
nix-collect-garbage Add missing rethrows in conditional exception handlers 2022-06-10 10:52:41 -07:00
nix-copy-closure copyPaths: Pass store by reference 2021-07-22 09:59:51 +02:00
nix-env Revert to copyStore = true for nix-instantiate and nix-env 2022-08-23 14:40:27 +02:00
nix-instantiate Revert to copyStore = true for nix-instantiate and nix-env 2022-08-23 14:40:27 +02:00
nix-store Fix a misplaced parenthese in serve protocol check 2022-08-24 01:54:43 +02:00
resolve-system-dependencies Get rid of most .at calls (#6393) 2022-05-04 07:44:32 +02:00
toml11 Replace cpptoml with toml11 2021-12-17 22:03:33 +01:00