Hi Bruno, Eric, et al.,

Please have a look at GCC's fixincludes.
It needs (and uses) a chain of processes.
See gcc/fixincludes/server.[ch] and ../procopen.c

To solve problems I couldn't figure out, I had to fork() and exit()
the writer to the chain, or the intermediate processes would hang.
Even with closing all the pipes and sending down HUP ioctls.
Nothing I tried worked until the original pipe controlling process
actually exited.  In any event, it ought not be much trouble to
fiddle the interface so you could give this pipe-filter process
an initial FD pair so you could chain a bunch of them together.

Thank you!!

Regards, Bruce


Reply via email to