Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Mime-Version: 1.0 (Apple Message framework v623) Content-Transfer-Encoding: 7bit Message-Id: <07cbd240f86b06954fe63730c9370fb8@swri.edu> Content-Type: text/plain; charset=US-ASCII; format=flowed To: cygwin AT cygwin DOT com From: Joey Mukherjee Subject: Exec and parent environment Date: Wed, 28 Sep 2005 11:31:28 -0500 I am having a problem with some Cygwin compiled programs and am hoping for some advice. I have a menu program which is started from the Desktop by its icon. In this menu program, I modify the environment for any child programs that it launches. This works great until the child program launches a child of its own. In the child code, I use execvp to do the launch; however, I don't believe the child process (grandchild to menu program) is getting the enviroment variables copied from the parent (child of menu program). Does this seem like a bug? Is there a better way to do what I am doing? I can make the grandchild work if I put the environment variables in the Control Panel->System->Advanced->Environment Variables. I hope this makes sense and thanks in advance for any advice! Joey -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/