diff options
| author | Martin Ridgers <[email protected]> | 2021-11-16 16:14:54 +0100 |
|---|---|---|
| committer | Martin Ridgers <[email protected]> | 2021-11-16 16:14:54 +0100 |
| commit | 7e4670cf91101f07d3d28acef7a807b752f95d07 (patch) | |
| tree | 9c06f5c6f9832d34229f9e42ed3ec459696dcc8c /zencore/thread.cpp | |
| parent | Merged main (diff) | |
| download | zen-7e4670cf91101f07d3d28acef7a807b752f95d07.tar.xz zen-7e4670cf91101f07d3d28acef7a807b752f95d07.zip | |
SOCK_CLOEXEC isn't a valid option for AF_UNIX-type sockets
Diffstat (limited to 'zencore/thread.cpp')
| -rw-r--r-- | zencore/thread.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/zencore/thread.cpp b/zencore/thread.cpp index 88b92e655..864870f10 100644 --- a/zencore/thread.cpp +++ b/zencore/thread.cpp @@ -252,7 +252,7 @@ NamedEvent::NamedEvent(std::string_view EventName) m_EventHandle = CreateEventA(nullptr, true, false, Name.c_str()); #else - int SocketFd = socket(AF_UNIX, SOCK_DGRAM, SOCK_CLOEXEC); + int SocketFd = socket(AF_UNIX, SOCK_DGRAM, 0); if (SocketFd < 0) { ThrowLastError("Failed to create IPC socket"); |