Bug 314528 (MONO57931) - configure leaves child process hanging when stdout is a pipe
Summary: configure leaves child process hanging when stdout is a pipe
Status: RESOLVED INVALID
Alias: MONO57931
Product: Mono: Debugger
Classification: Mono
Component: backend (show other bugs)
Version: unspecified
Hardware: Other Other
: P3 - Medium : Minor
Target Milestone: ---
Assignee: Martin Baulig
QA Contact: Martin Baulig
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-05-01 04:01 UTC by Ed Catmur
Modified: 2007-09-15 21:24 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
Proposed patch (506 bytes, patch)
2004-05-01 04:02 UTC, Thomas Wiest
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Wiest 2007-09-15 18:35:39 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".