1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-28 21:21:00 +01:00

Merge pull request #14667 from Mic92/fix-remote-builder-hang

daemon: fix hang on SSH disconnect during remote builds
This commit is contained in:
John Ericson 2025-11-27 14:47:21 +00:00 committed by GitHub
commit 11b0fcd6cd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1025,6 +1025,7 @@ void processConnection(ref<Store> store, FdSource && from, FdSink && to, Trusted
#ifndef _WIN32 // TODO need graceful async exit support on Windows? #ifndef _WIN32 // TODO need graceful async exit support on Windows?
auto monitor = !recursive ? std::make_unique<MonitorFdHup>(from.fd) : nullptr; auto monitor = !recursive ? std::make_unique<MonitorFdHup>(from.fd) : nullptr;
(void) monitor; // suppress warning (void) monitor; // suppress warning
ReceiveInterrupts receiveInterrupts;
#endif #endif
/* Exchange the greeting. */ /* Exchange the greeting. */