Change vars in the parent process

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Markus Franz

    #1

    Change vars in the parent process

    Hi!


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


    Markus
  • Thomas Guettler

    #2
    Re: Change vars in the parent process

    Am Tue, 21 Dec 2004 06:20:09 -0800 schrieb Markus Franz:
    [color=blue]
    > Hi!
    >
    >
    > Is there any possibility to change vars inside a parent process from
    > the inside of a child process?
    > Thanks[/color]

    Hi,

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

    Thomas


    --
    Thomas Güttler, http://www.thomas-guettler.de/


    Comment

    • Steve Holden

      #3
      Re: Change vars in the parent process

      Markus Franz wrote:
      [color=blue]
      > Hi!
      >
      >
      > Is there any possibility to change vars inside a parent process from
      > the inside of a child process?
      > Thanks
      >
      >[/color]

      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.

      regards
      Steve
      --
      Steve Holden http://www.holdenweb.com/
      Python Web Programming http://pydish.holdenweb.com/
      Holden Web LLC +1 703 861 4237 +1 800 494 3119

      Comment

      • Cameron Laird

        #4
        Re: Change vars in the parent process

        In article <pan.2004.12.21 .14.29.00.47894 8@thomas-guettler.de>,
        Thomas Guettler <guettli@thom as-guettler.de> wrote:[color=blue]
        >Am Tue, 21 Dec 2004 06:20:09 -0800 schrieb Markus Franz:
        >[color=green]
        >> Hi!
        >>
        >>
        >> Is there any possibility to change vars inside a parent process from
        >> the inside of a child process?
        >> Thanks[/color]
        >
        >Hi,
        >
        >No, that's impossible. At least on unix.[/color]

        Comment

        Working...