mirror of
https://github.com/NixOS/nix.git
synced 2025-11-12 05:26:02 +01:00
On https://github.com/NixOS/nix/issues/8946, we faced a surprising behaviour wrt. exception when using pthread_cancel. In a nutshell when a thread is inside a catch block and it's getting pthread_cancel by another one, then the original exception is bubbled up and crashes the process. We now poll on the notification pipe from the thread and exit when the main thread closes its end. This solution does not exhibit surprising behaviour wrt. exceptions. Co-authored-by: Mic92 <joerg@thalheim.io> Fixes https://github.com/NixOS/nix/issues/8946 See also Lix https://gerrit.lix.systems/c/lix/+/1605 which is very similar by coincidence. Pulled a comment from that. |
||
|---|---|---|
| .. | ||
| environment-variables.cc | ||
| file-descriptor.cc | ||
| file-path.cc | ||
| file-system.cc | ||
| meson.build | ||
| monitor-fd.hh | ||
| muxable-pipe.cc | ||
| os-string.cc | ||
| processes.cc | ||
| signals-impl.hh | ||
| signals.cc | ||
| users.cc | ||