Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.postscript > #3719

Re: Reading from %pipe% blocks if the program writes only a few output (example)

From news@zzo38computer.org.invalid
Newsgroups comp.lang.postscript
Subject Re: Reading from %pipe% blocks if the program writes only a few output (example)
Date 2022-01-11 15:56 -0800
Organization Aioe.org NNTP Server
Message-ID <1641945002.bystand@zzo38computer.org> (permalink)
References <1641626040.bystand@zzo38computer.org>

Show all headers | View raw


Perhaps I should provide a example:

  (%pipe%echo -n 1; sleep 1; echo -n 2; xkbbell; sleep 1; echo -n 3)
  (r) file read pstack flush

The expectation should be that the first byte (49) should be readable
right away, and then after one second is a bell and the second byte is
readable, etc.

That isn't what it does; instead it executes (including the bell after
one second), but only after two seconds (when the program specified in
the pipe is terminated) will it be readable.

It works as expected if it is read from %stdin (piping it to Ghostscript,
given suitable PostScript code) instead of %pipe%, though.

-- 
Don't laugh at the moon when it is day time in France.

Back to comp.lang.postscript | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Reading from %pipe% blocks if the program writes only a few output news@zzo38computer.org.invalid - 2022-01-07 23:16 -0800
  Re: Reading from %pipe% blocks if the program writes only a few output John Reiser <vendor@BitWagon.com> - 2022-01-09 16:59 -0800
    Re: Reading from %pipe% blocks if the program writes only a few output news@zzo38computer.org.invalid - 2022-01-10 18:21 -0800
  Re: Reading from %pipe% blocks if the program writes only a few output (example) news@zzo38computer.org.invalid - 2022-01-11 15:56 -0800
    Re: Reading from %pipe% blocks if the program writes only a few output (example) luser droog <luser.droog@gmail.com> - 2022-01-16 15:36 -0800
      Re: Reading from %pipe% blocks if the program writes only a few output (example) news@zzo38computer.org.invalid - 2022-01-20 01:12 -0800
        Re: Reading from %pipe% blocks if the program writes only a few output (example) luser droog <luser.droog@gmail.com> - 2022-01-20 16:56 -0800
          Re: Reading from %pipe% blocks if the program writes only a few output (example) luser droog <luser.droog@gmail.com> - 2022-01-24 09:29 -0800

csiph-web