Mailing-List: contact cygwin-developers-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-developers-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin-developers AT sources DOT redhat DOT com Date: Wed, 31 Oct 2001 22:43:41 -0500 From: Christopher Faylor To: cygwin-developers AT cygwin DOT com Subject: Is the application a cygwin application? Message-ID: <20011031224341.A30640@redhat.com> Reply-To: cygwin-developers AT cygwin DOT com Mail-Followup-To: cygwin-developers AT cygwin DOT com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.21i Does anyone know of a really easy, cheap way to scan a .exe header and determine if the exe loads cygwin1.dll? If I could do that, I could make some stuff in spawn_guts more bullet-proof. Currently there are problems with vfork and spawn(NO_WAIT) when the process being spawned is a non-cygwin process. I could work around the problems if I could reliably tell that the program being run was a cygwin program. cgf