pipe flushing

Wayne Throop throopw at dg_rtp.UUCP
Tue Dec 2 02:16:15 AEST 1986


> From: ma6nrr at bath63.bath.ac.uk (Rashbrook)
> Does anybody know how to set a pipe to be
> flushed at newlines even over execs?

Assuming we are talking about the "fmumble" library routines here, this
is simply not possible, unless the program to be "exec"ed is rewritten
to co-operate with the program which will "exec" it (by recognizing a
"flush pipe output" option on its command line, for example).

> Even a function so a process can flush a
> pipe,which is common to and written by a
> forked process,so the original process can
> can read it would be useful.

If "fflush(3)" isn't what you have in mind, then I haven't the foggiest
notion what this means.  A specific example would be helpful.

--
Sometimes I think the only universal in the computing field is the
fetch-execute cycle.
                                --- Alan J. Perlis
-- 
Wayne Throop      <the-known-world>!mcnc!rti-sel!dg_rtp!throopw



More information about the Comp.lang.c mailing list