mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-10 00:08:07 +02:00
Don't use SOCK_CLOEXEC on macOS
https://hydra.nixos.org/build/105428308
This commit is contained in:
parent
3770f5c944
commit
1b600ecd14
1 changed files with 5 additions and 1 deletions
|
@ -1567,7 +1567,11 @@ std::unique_ptr<InterruptCallback> createInterruptCallback(std::function<void()>
|
|||
|
||||
AutoCloseFD createUnixDomainSocket(const Path & path, mode_t mode)
|
||||
{
|
||||
AutoCloseFD fdSocket = socket(PF_UNIX, SOCK_STREAM | SOCK_CLOEXEC, 0);
|
||||
AutoCloseFD fdSocket = socket(PF_UNIX, SOCK_STREAM
|
||||
#ifdef SOCK_CLOEXEC
|
||||
| SOCK_CLOEXEC
|
||||
#endif
|
||||
, 0);
|
||||
if (!fdSocket)
|
||||
throw SysError("cannot create Unix domain socket");
|
||||
|
||||
|
|
Loading…
Reference in a new issue