Core/Posix: Fix O_CLOEXEC on pipes
This commit is contained in:
committed by
Jérôme Leclercq
parent
37be90b1f7
commit
496de948d2
@@ -60,7 +60,7 @@ namespace Nz::PlatformImpl
|
|||||||
{
|
{
|
||||||
int fds[2];
|
int fds[2];
|
||||||
#if defined(NAZARA_PLATFORM_LINUX) || defined(NAZARA_PLATFORM_ANDROID)
|
#if defined(NAZARA_PLATFORM_LINUX) || defined(NAZARA_PLATFORM_ANDROID)
|
||||||
if (::pipe2(fds, flags & O_CLOEXEC) != 0)
|
if (::pipe2(fds, flags | O_CLOEXEC) != 0)
|
||||||
return;
|
return;
|
||||||
#else
|
#else
|
||||||
if (::pipe(fds) != 0)
|
if (::pipe(fds) != 0)
|
||||||
|
|||||||
Reference in New Issue
Block a user