From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9649 invoked by alias); 24 Oct 2014 15:26:47 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 9640 invoked by uid 89); 24 Oct 2014 15:26:47 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.8 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Fri, 24 Oct 2014 15:26:46 +0000 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s9OFQjmQ031949 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Fri, 24 Oct 2014 11:26:45 -0400 Received: from [10.3.113.23] (ovpn-113-23.phx2.redhat.com [10.3.113.23]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id s9OFQi5h021675 for ; Fri, 24 Oct 2014 11:26:44 -0400 Message-ID: <544A6FB4.5070004@redhat.com> Date: Fri, 24 Oct 2014 15:26:00 -0000 From: Eric Blake User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-Version: 1.0 To: cygwin@cygwin.com Subject: Re: Why can't run.exe execute a shebang script directly? References: <1414155946.62587.YahooMailNeo@web162803.mail.bf1.yahoo.com> <20141024135339.GM20607@calimero.vinschen.de> <1414163944.58941.YahooMailNeo@web162803.mail.bf1.yahoo.com> In-Reply-To: <1414163944.58941.YahooMailNeo@web162803.mail.bf1.yahoo.com> OpenPGP: url=http://people.redhat.com/eblake/eblake.gpg Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="E75pFVdeEOcC78Il5KuTGIH2b0obLQ6Fi" X-IsSubscribed: yes X-SW-Source: 2014-10/txt/msg00404.txt.bz2 --E75pFVdeEOcC78Il5KuTGIH2b0obLQ6Fi Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Content-length: 756 On 10/24/2014 09:19 AM, John Wiersba wrote: > I thought that all (or virtually all) cygwin-supplied programs that start= =20 > other programs use the cygwin1.dll execve(2) emulation to start them, bec= ause=20 > the execve emulation can be used to start *both* cygwin programs and wind= ows=20 > native programs. Or at least it seems that way to me. >=20 > Is there be in drawback to having run.exe start its target program using > the execve emulation in cygwin1.dll, rather than using a Windows call to > start the target executable? run.exe is special. In order to hide consoles, it MUST use native windows API instead of cygwin1.dll calls. --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --E75pFVdeEOcC78Il5KuTGIH2b0obLQ6Fi Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" Content-length: 539 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 Comment: Public key at http://people.redhat.com/eblake/eblake.gpg iQEcBAEBCAAGBQJUSm+0AAoJEKeha0olJ0Nq80EH/i66JIrcILFoM3DRGWH+3Gfk byIyZHppkydWJIPCThdeaKBWHRRymFFfiCSht764ag+ZqcV6+e90PcS2bX0LzJby mS6zXhPPD8/uubycAtFAFonP23fLD5G4J+sj3zG0xsA29D/Mj1DGquhZx4MM7GbI 5l1Gz9W0genkdoPVNdDZp7hy2Y2mehkFejBnmf3Tq/PuI/B8UXoYwETf9xH6jedx sxzZBhZX7kDgo9nxLlBT/vJv/IYjGZ3tqXMumWewZ0dDItZDe6tyE0NCRTzrdjiY 5Hl50yoI3ohRMSsJkjyL8iiITN8pF9Ks7+pEVW9xeiXk5OWYLtArF3JtyKlGSOc= =L9K1 -----END PGP SIGNATURE----- --E75pFVdeEOcC78Il5KuTGIH2b0obLQ6Fi--