Opened 15 months ago

Last modified 13 months ago

#1303 new defect

File ports should be nonblocking

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

Description (last modified by sjamaan)

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) (lp))))
(thread-start! (lambda () (with-input-from-file "/dev/tty" (lambda () (let lp () (print (cons 'read-from-tty (read))) (lp))))))

(thread-sleep! 1000)

Change History (2)

comment:1 Changed 15 months ago by sjamaan

  • Description modified (diff)

comment:2 Changed 13 months ago by sjamaan

  • Estimated difficulty set to hard
Note: See TracTickets for help on using tickets.