delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
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) |
Message-Id: | <07cbd240f86b06954fe63730c9370fb8@swri.edu> |
To: | cygwin AT cygwin DOT com |
From: | Joey Mukherjee <joey AT swri DOT edu> |
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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |