Change vars in the parent process

Discussion in 'Python' started by Markus Franz, Dec 21, 2004.

  1. Markus Franz

    Markus Franz Guest


    Is there any possibility to change vars inside a parent process from
    the inside of a child process?

    Markus Franz, Dec 21, 2004
    1. Advertisements

  2. Am Tue, 21 Dec 2004 06:20:09 -0800 schrieb Markus Franz:

    No, that's impossible. At least on unix.

    Thomas Guettler, Dec 21, 2004
    1. Advertisements

  3. Markus Franz

    Steve Holden Guest

    Not without adopting some specific inter-process mechanism such as a
    network socket. The idea is that processes are *intended* to provide
    protection boundaries around separate activities.

    Maybe what you need is threads, which can easily access each other's
    resources. They do need careful control, though, precisely because they
    share a single process's address space and protection boundary.

    Steve Holden, Dec 21, 2004
  4. Cameron Laird, Dec 21, 2004
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.