This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

spawnvp is "unbreakable" for non-cygwin programs - Was: spawn doesn't return for non-cygwin programs (and also is unbreakable)


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.
> 
> 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=tty 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

-- 
PGP/GPG key  (ID: 0x9F8A785D)  available  from  wwwkeys.de.pgp.net
key-fingerprint 550D F17E B082 A3E9 F913  9E53 3D35 C9BA 9F8A 785D

Attachment: signature.asc
Description: OpenPGP digital signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]