hanging-read pasted by Lattay 3 days ago

(import chicken.process)

(define-values (in out pid err) (process* "rev"))

(write ":abc\n" out)
(display (read-char in))

no title added by megane 3 days ago

(import chicken.process)

(define-values (in out pid err) (process* "rev"))

(close-input-port err)
(let lp ()
  (if (char-ready? in)
      (display (read-char in))
      (display "abc\n" out))
  (lp))