Bugzilla – Bug 314528
configure leaves child process hanging when stdout is a pipe
Last modified: 2007-09-15 21:24:34 UTC
---- Reported by ed@catmur.co.uk 2004-04-30 21:01:06 MST ---- $ ./configure | cat The configure process works fine, except that at the end control is not returned to the shell; it just hangs. This is a particular problem when using automated build scripts such as Gentoo Portage, if logging via a pipe to tee is used. There is a more complete exposition at http://bugs.gentoo.org/show_bug.cgi?id=47067 This also contains a proposed patch to configure.in. ---- Additional Comments From ed@catmur.co.uk 2004-04-30 21:02:15 MST ---- Created an attachment (id=165956) Proposed patch ---- Additional Comments From ed@catmur.co.uk 2004-04-30 21:03:09 MST ---- Proposed patch forces the child pid to die, preventing the hang. ---- Additional Comments From miguel@ximian.com 2004-05-12 13:42:22 MST ---- Dick, could we get your Unixy input on this? ---- Additional Comments From martin@ximian.com 2004-05-22 12:43:38 MST ---- I think a more correct fix would be killing the wait thread and correctly terminating the fork()ed child. ---- Additional Comments From miguel@ximian.com 2004-09-20 13:42:49 MST ---- Since so many changes will be required still, am setting this to wishlist. ---- Additional Comments From miguel@ximian.com 2005-09-05 13:52:39 MST ---- reassigning to new debugger owner. ---- Additional Comments From martin@ximian.com 2005-09-07 13:47:07 MST ---- Closing all the old crap. ---- Additional Comments From martin@ximian.com 2005-09-07 13:59:03 MST ---- . Imported an attachment (id=165956) Unknown bug field "cf_op_sys_details" encountered while moving bug <cf_op_sys_details>Gentoo x86 Linux 2.6.5</cf_op_sys_details> Unknown operating system unknown. Setting to default OS "Other".