Core/Posix: Fix O_CLOEXEC on pipes

This commit is contained in:
SirLynix
2024-01-23 19:14:37 +01:00
committed by Jérôme Leclercq
parent 37be90b1f7
commit 496de948d2

View File

@@ -60,7 +60,7 @@ namespace Nz::PlatformImpl
{
int fds[2];
#if defined(NAZARA_PLATFORM_LINUX) || defined(NAZARA_PLATFORM_ANDROID)
if (::pipe2(fds, flags & O_CLOEXEC) != 0)
if (::pipe2(fds, flags | O_CLOEXEC) != 0)
return;
#else
if (::pipe(fds) != 0)