[gambit-list] how can i make the following be non-blocking io?

lowly coder lowlycoder at huoyanjinjing.com
Sat Mar 28 04:45:12 EDT 2009


~/vis/test:$ cat test.scm
(define p (open-process (list path: "gdb"
                              arguments: '("--interpreter=mi2"))))

(pp (read-line p)) (pp (read-line p)) (pp (read-line p)) (pp (read-line p))
(pp (read-line p)) (pp (read-line p)) (pp (read-line p)) (pp (read-line p))
(pp (read-line p)) (pp (read-line p)) (pp (read-line p)) (pp (read-line p))
(pp (read-line p)) (pp (read-line p)) (pp (read-line p)) (pp (read-line p))
(pp (read-line p)) (pp (read-line p)) (pp (read-line p)) (pp (read-line p))


... why does this block? and how can I make it non-blocking? I've searched
through the gambit-c.txt file, but I can't find ways of manipulating it
either during reading or the port itself
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.iro.umontreal.ca/pipermail/gambit-list/attachments/20090328/2a02072c/attachment.htm>


More information about the Gambit-list mailing list