delorie.com/archives/browse.cgi | search |
---559023410-599575650-1155857404=:2408 Content-Type: TEXT/PLAIN; charset=US-ASCII On Thu, 17 Aug 2006, Brian Ford wrote: > On Thu, 10 Aug 2006, Christopher Faylor wrote: > > On Thu, Aug 10, 2006 at 11:19:15PM +0200, Dr. Volker Zell wrote: > > >Starting xterm from an rxvt window gives: > > >In the Xterm window > > > 587214 [main] xterm 296 modify_handle: virtual void fhandler_pipe::set_close_on_exec(bool):175 handle guard<0x680> not found > > > > That one *could* be responsible. I was suspecting something in the pipe > > code since it has often been the cause of handle closing confusion. > > Just in case anyone wants another simple test case: > > $ cat makefile > all: > echo hi > > $ make > echo hi > 7486 [main] make 2648 modify_handle: virtual void > fhandler_pipe::set_close_on_exec(bool):175 handle guard<0x734> not found > hi Attached is a simpler C test case distilled from the make code causing the problem. $ gcc -g -O2 -Wall pipe.c -o pipe.exe $ ./pipe.exe 788 [main] pipe 2332 modify_handle: virtual void fhandler_pipe::set_close_on_exec(bool):175 handle guard<0x738> not found -- Brian Ford Lead Realtime Software Engineer VITAL - Visual Simulation Systems FlightSafety International the best safety device in any aircraft is a well-trained crew... . ---559023410-599575650-1155857404=:2408 Content-Type: TEXT/PLAIN; charset=US-ASCII; name="pipe.c" Content-Transfer-Encoding: BASE64 Content-ID: <Pine DOT CYG DOT 4 DOT 58 DOT 0608171830040 DOT 2408 AT PC1163-8460-XP DOT flightsafety DOT com> Content-Description: Content-Disposition: attachment; filename="pipe.c" I2luY2x1ZGUgPHN5cy90eXBlcy5oPg0KI2luY2x1ZGUgPHVuaXN0ZC5oPg0K I2luY2x1ZGUgPHN0ZGlvLmg+DQojaW5jbHVkZSA8c3RkbGliLmg+DQojaW5j bHVkZSA8ZmNudGwuaD4NCg0KaW50DQptYWluKHZvaWQpDQp7DQogICAgaW50 IGZkc1syXSwgZmxhZ3M7DQoNCiAgICAvKiBNYWtlIGEgZmlsZSBkZXNjcmlw dG9yIHRoYXQgaXMgdGhlIHJlYWQgZW5kIG9mIGEg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0KCXBlcnJvcigiZXhlYyBs cyIpOw0KCV9leGl0KC0xKTsNCg0KICAgIGRlZmF1bHQ6IC8vIHBhcmVudA0K ICAgICAgICBjbG9zZShmZHNbMF0pOw0KICAgIH0NCg0KICAgIHJldHVybiAw Ow0KfQ0K ---559023410-599575650-1155857404=:2408 Content-Type: text/plain; charset=us-ascii -- 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/ ---559023410-599575650-1155857404=:2408--
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |