X-Spam-Check-By: sourceware.org Message-ID: <45A5362B.6030903@scytek.de> Date: Wed, 10 Jan 2007 12:53:31 -0600 From: Volker Quetschke User-Agent: Thunderbird 1.5.0.9 (Windows/20061207) MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: spawnvp is "unbreakable" for non-cygwin programs - Was: spawn doesn't return for non-cygwin programs (and also is unbreakable) References: <45903C5C DOT 2030904 AT scytek DOT de> <20070102123909 DOT GB10840 AT trixie DOT casa DOT cgf DOT cx> In-Reply-To: <20070102123909.GB10840@trixie.casa.cgf.cx> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig2C3EF86CDE0A2B4B1330AF22" X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: 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 --------------enig2C3EF86CDE0A2B4B1330AF22 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Christopher Faylor wrote: > On Mon, Dec 25, 2006 at 04:02:20PM -0500, Volker Quetschke wrote: >> I recently tripped over the following problem: If a non-cygwin >> program gets started by cygwin's spawnvp() the spawn doesn't return >> until the started program returns. >=20 > Should be fixed in the latest snapshot. Thanks for the test case. Thanks! Now spawnvp() really behaves like spawn. As reported in the original mail, but only being a minor nuisance, the spawned child is still not interruptible by CTRL-c when CYGWIN=3Dtty in bash from cmd.exe is used, or when rxvt is used. The symptoms changed slightly compared to before the fix but essentially the spawned child is still unbreakable. Use the files from the original email and try hitting CTRL-c while breaktestwin.exe is running from a tty enabled shell. The SIGINT will be handled for the parent but not passed down to the child (As I learned this is/should be done by the shell.) Thanks for the quick fix of the major part of the problem Volker P.S.: I'm using the current snapshot: $ uname -a CYGWIN_NT-5.1 Turion 1.7.0s(0.161/4/2) 20070110 09:38:11 i686 Cygwin --=20 PGP/GPG key (ID: 0x9F8A785D) available from wwwkeys.de.pgp.net key-fingerprint 550D F17E B082 A3E9 F913 9E53 3D35 C9BA 9F8A 785D --------------enig2C3EF86CDE0A2B4B1330AF22 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (MinGW) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFFpTYrPTXJup+KeF0RAjTXAKC0q8LzCsqRS6FS3RcYPNYg4jpOjACfR13L Mp6IkQ6dHeGKG/DRazJm0RM= =5gAS -----END PGP SIGNATURE----- --------------enig2C3EF86CDE0A2B4B1330AF22--