[Issue 11282] std.process: add capability for two-way inter-process communication without deadlock

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Oct 16 16:47:29 PDT 2013


http://d.puremagic.com/issues/show_bug.cgi?id=11282



--- Comment #7 from Hans Fugal <hans at fugal.net> 2013-10-16 16:47:28 PDT ---
To elaborate, there are 4 buffers involved. Two of them are in the operating
system (the pipe buffers), and two are in our space. If we try to flush all of
our buffer before reading, then the pipe buffers can fill up and cause
deadlock. Brad is saying that just solving the pipe buffers problem doesn't go
as far as he'd like - he wants to also solve the problem of having to buffer in
the program too, i.e. generally the problem where stdin may be very large (or
infinite) and processing stdout doesn't want to have to read all the way to EOF
which may be very large (or infinite).

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list