A RetroSearch Logo

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

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2002-April/022717.html below:

[Python-Dev] Pondering some changes to python.c...

[Python-Dev] Pondering some changes to python.c... [Python-Dev] Pondering some changes to python.c...Martin v. Loewis martin@v.loewis.de
09 Apr 2002 00:18:18 +0200
Sean Reifschneider <jafo@tummy.com> writes:

> On Linux and a few other systems, setting the ps string requires re-writing
> the block of memory starting at argv[0].  If the data in envp is
> allocated next to argv, you can also make use of that (so that you can
> write strings longer than "python testscript" in length).

That's very hacky, IMO, and something I would not like to see
generally available. If you need that feature, embed Python.

Or, write an extension module allowing to rewrite argc/argv. ps
manages to find out what the arguments are, so it should be possible
to find (and overwrite) them even without getting them as arguments to
main().

Regards,
Martin





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