[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freedesktop-xorg
Subject:    Re: =?UTF-8?B?562U5aSNOiDnrZTlpI06IEEgcXVlc3Rpb24gYWJvdXQgWE9wZW4=?=
From:       Alan Coopersmith <alan.coopersmith () oracle ! com>
Date:       2010-04-29 3:12:11
Message-ID: 4BD8F90B.2080300 () oracle ! com
[Download RAW message or body]

Ma, Qingyu (GE Healthcare) wrote:
>> export/setenv only affect processes started from the shell after the command is
>> run.   Since myProcess is already running, the second export cannot affect it.
> 
> My understanding is when my process call XOpenDisplay(NULL), current DISPLAY will be used. 

Environment variables are passed from the shell to the process when the process
is started.   Once it's started, further changes in the shell cannot change the
variables the process sees.   This has nothing to do with XOpenDisplay, but is
simply how environment variables work in all Unix processes - getenv() is the
same way.

-- 
	-Alan Coopersmith-        alan.coopersmith@oracle.com
	 Oracle Solaris Platform Engineering: X Window System

_______________________________________________
xorg@lists.freedesktop.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: http://lists.freedesktop.org/mailman/listinfo/xorg
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic