Opened 8 years ago

Last modified 14 months ago

#1303 new defect

File ports should be nonblocking

Reported by: sjamaan Owned by:
Priority: major Milestone: 6.0.0
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 (3)

comment:1 Changed 8 years ago by sjamaan

Description: modified (diff)

comment:2 Changed 8 years ago by sjamaan

Estimated difficulty: hard

comment:3 Changed 14 months ago by felix winkelmann

Milestone: someday6.0.0
Note: See TracTickets for help on using tickets.