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:
parent
1885d579db
commit
c924147c9d
4 changed files with 10 additions and 10 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue