aboutsummaryrefslogtreecommitdiff
path: root/src/libutil/unix-domain-socket.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/libutil/unix-domain-socket.cc')
-rw-r--r--src/libutil/unix-domain-socket.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libutil/unix-domain-socket.cc b/src/libutil/unix-domain-socket.cc
index a6e46ca50..d4fc37fab 100644
--- a/src/libutil/unix-domain-socket.cc
+++ b/src/libutil/unix-domain-socket.cc
@@ -65,7 +65,7 @@ static void bindConnectProcHelper(
if (path.size() + 1 >= sizeof(addr.sun_path)) {
Pipe pipe;
pipe.create();
- Pid pid = startProcess([&] {
+ Pid pid{startProcess([&] {
try {
pipe.readSide.close();
Path dir = dirOf(path);
@@ -83,7 +83,7 @@ static void bindConnectProcHelper(
} catch (...) {
writeFull(pipe.writeSide.get(), "-1\n");
}
- });
+ })};
pipe.writeSide.close();
auto errNo = string2Int<int>(chomp(drainFD(pipe.readSide.get())));
if (!errNo || *errNo == -1)