A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2007-June/073690.html below:

[Python-Dev] Proposal for a new function "open_noinherit" to avoid problems with subprocesses and security risks

[Python-Dev] Proposal for a new function "open_noinherit" to avoid problems with subprocesses and security risks [Python-Dev] Proposal for a new function "open_noinherit" to avoid problems with subprocesses and security risks"Martin v. Löwis" martin at v.loewis.de
Sat Jun 23 08:41:54 CEST 2007
Henning von Bargen schrieb:
> I'd like to propose a new function "open_noinherit"
> or maybe even a new mode flag "n" for the builtin "open"
> (see footnote for the names).

Do you have a patch implementing that feature? I believe
it's unimplementable in Python 2.x: open() is mapped
to fopen(), which does not support O_NOINHERIT.

If you don't want the subprocess to inherit handles,
why don't you just specify close_fds=True when creating
the subprocess?

Regards,
Martin
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4