1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-25 10:41:16 +02:00

Drop parentheses from thunks

This commit is contained in:
Jacek Galowicz 2023-11-02 15:50:00 +01:00
parent 1885d579db
commit c924147c9d
4 changed files with 10 additions and 10 deletions

View file

@ -47,7 +47,7 @@ void bind(int fd, const std::string & path)
addr.sun_family = AF_UNIX;
if (path.size() + 1 >= sizeof(addr.sun_path)) {
Pid pid = startProcess([&]() {
Pid pid = startProcess([&] {
Path dir = dirOf(path);
if (chdir(dir.c_str()) == -1)
throw SysError("chdir to '%s' failed", dir);
@ -78,7 +78,7 @@ void connect(int fd, const std::string & path)
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);