2020-07-07 14:21:33 +00:00
|
|
|
From f78bb95d3c95a4fb20745eb70ad876495de26e94 Mon Sep 17 00:00:00 2001
|
|
|
|
From: Michael Droettboom <mdboom@gmail.com>
|
|
|
|
Date: Sun, 5 Jul 2020 17:37:43 +0200
|
|
|
|
Subject: [PATCH] disable-set_inheritable
|
|
|
|
|
|
|
|
|
2018-07-18 13:26:18 +00:00
|
|
|
diff --git a/Python/fileutils.c b/Python/fileutils.c
|
2020-07-07 14:21:33 +00:00
|
|
|
index e79e732d1f..864dc78a57 100644
|
2018-07-18 13:26:18 +00:00
|
|
|
--- a/Python/fileutils.c
|
|
|
|
+++ b/Python/fileutils.c
|
2020-07-07 14:21:33 +00:00
|
|
|
@@ -1091,6 +1091,9 @@ _Py_get_inheritable(int fd)
|
2018-07-18 13:26:18 +00:00
|
|
|
static int
|
|
|
|
set_inheritable(int fd, int inheritable, int raise, int *atomic_flag_works)
|
|
|
|
{
|
|
|
|
+#ifdef EMSCRIPTEN
|
|
|
|
+ return 0;
|
2021-01-03 08:48:16 +00:00
|
|
|
+#endif
|
2018-07-18 13:26:18 +00:00
|
|
|
#ifdef MS_WINDOWS
|
|
|
|
HANDLE handle;
|
|
|
|
DWORD flags;
|