Skip to content

Commit 11b0fcd

Browse files
authored
Merge pull request #14667 from Mic92/fix-remote-builder-hang
daemon: fix hang on SSH disconnect during remote builds
2 parents a3d77a4 + 98c7ca2 commit 11b0fcd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/libstore/daemon.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1025,6 +1025,7 @@ void processConnection(ref<Store> store, FdSource && from, FdSink && to, Trusted
10251025
#ifndef _WIN32 // TODO need graceful async exit support on Windows?
10261026
auto monitor = !recursive ? std::make_unique<MonitorFdHup>(from.fd) : nullptr;
10271027
(void) monitor; // suppress warning
1028+
ReceiveInterrupts receiveInterrupts;
10281029
#endif
10291030

10301031
/* Exchange the greeting. */

0 commit comments

Comments
 (0)