Path: csiph.com!aioe.org!P703Hxu1m1uplaQVJzdzug.user.46.165.242.75.POSTED!not-for-mail From: news@zzo38computer.org.invalid Newsgroups: comp.lang.postscript Subject: Re: Reading from %pipe% blocks if the program writes only a few output Date: Mon, 10 Jan 2022 18:21:16 -0800 Organization: Aioe.org NNTP Server Message-ID: <1641867519.bystand@zzo38computer.org> References: <1641626040.bystand@zzo38computer.org> Mime-Version: 1.0 Injection-Info: gioia.aioe.org; logging-data="41039"; posting-host="P703Hxu1m1uplaQVJzdzug.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org"; User-Agent: bystand/1.3.0pre X-Notice: Filtered by postfilter v. 0.9.2 Xref: csiph.com comp.lang.postscript:3718 John Reiser wrote: > Sounds like the writing PostScript process should use 'flush' or '(%stdout%) flushfile' > to force the few bytes into the file from the output buffer. The writing process is not a PostScript program, but a C program; the PostScript program is reading the output from it. (Note that it does not do this with standard input (even if it is connected to the same C program); it only does this with a pipe. (The C program does flush the output. The PostScript program is doing input; it does flush stdout but that doesn't affect the %pipe% at all.) -- Don't laugh at the moon when it is day time in France.