Opened 8 years ago

Last modified 6 months ago

#1303 new defect

File ports should be nonblocking — at Initial Version

Reported by: sjamaan Owned by:
Priority: major Milestone: 6.0.0
Component: unknown Version: 4.11.0
Keywords: Cc:
Estimated difficulty: hard

Description

As shown by this ugly little program, reading from regular files blocks.

(use srfi-18)

(thread-start! (lambda () (let lp () (print "spinning") (thread-sleep! 0.2))))
(thread-start! (lambda () (with-input-from-file "/dev/tty" (lambda () (let lp () (print (cons 'read-from-tty (read))) (lp))))))

(thread-sleep! 1000)

Change History (0)

Note: See TracTickets for help on using tickets.