X-Spam-Check-By: sourceware.org Date: Sun, 30 Apr 2006 00:48:42 -0400 From: Christopher Faylor To: cygwin AT cygwin DOT com Subject: Re: Truncated Environment Variables? - using Cygwin + GetEnvironmentStrings() WIN32 API Message-ID: <20060430044842.GA12788@trixie.casa.cgf.cx> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <043020060332 DOT 28083 DOT 44542FE70000653100006DB322007614380A050E040D0C079D0A AT comcast DOT net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <043020060332.28083.44542FE70000653100006DB322007614380A050E040D0C079D0A@comcast.net> User-Agent: Mutt/1.5.11 Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Unsubscribe: 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 On Sun, Apr 30, 2006 at 03:32:55AM +0000, Eric Blake wrote: >On Sun, Apr 30, 2006 at 04:12:52AM +0100, Kaveh Goudarzi wrote: >>I'm working on an app which attempts to get the environment of running >>cygwin apps. It does this by running the GetEnvironmentStrings() win32 >>api call in the context of the running cygwin app (code injection). > >That is somewhat risky, as recent threads have discussed how windows >update does a code injection that interferes with cygwin and deadlocks >the processor into 100% utilization. Actually, it is unlikely that this is as simple as "code injection causes problems". I was playing with this technique a while ago with cygwin programs and I never saw the rumored 100% CPU utilization. cgf -- 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/