Core/Posix: Fix O_CLOEXEC on pipes
This commit is contained in:
parent
37be90b1f7
commit
496de948d2
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue