Changeset 161
- Timestamp:
- 05/31/06 05:33:04 (2 years ago)
- Files:
-
- experiments/machine/lib/machine/eio.rb (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
experiments/machine/lib/machine/eio.rb
r159 r161 59 59 # 60 60 def initialize io = nil 61 # Set the socket nonblocking. The new Ruby will actually nonblocking APIs. 61 # Set the socket nonblocking. The new Ruby will actually have nonblocking APIs. 62 # Just noticed, we're taking a nil default argument but if that ever happens 63 # the rest of this code will blow up. 62 64 m = io.fcntl(Fcntl::F_GETFL, 0) 63 65 io.fcntl(Fcntl::F_SETFL, Fcntl::O_NONBLOCK | m)