Writing to TTY on Linux gives Illegal Seek exception
----------------------------------------------------

                 Key: JRUBY-2952
                 URL: http://jira.codehaus.org/browse/JRUBY-2952
             Project: JRuby
          Issue Type: Bug
          Components: Core Classes/Modules
    Affects Versions: JRuby 1.1.4
         Environment: Fedora Linux 9, Sun Java 1.6.0_06, JRuby trunk
            Reporter: Uwe Kubosch


{noformat}
[EMAIL PROTECTED] ~]# jirb
irb(main):001:0> File.open('/dev/ttyS0', 'w') {|f| f << 'Hullo!'}
IOError: Illegal seek
        from (irb):2:in `open'
        from (irb):2:in `binding'
        from /usr/local/jruby-trunk/lib/ruby/1.8/irb.rb:150:in `eval_input'
        from /usr/local/jruby-trunk/lib/ruby/1.8/irb.rb:259:in `signal_status'
        from /usr/local/jruby-trunk/lib/ruby/1.8/irb.rb:147:in `eval_input'
        from /usr/local/jruby-trunk/lib/ruby/1.8/irb.rb:146:in `eval_input'
        from /usr/local/jruby-trunk/lib/ruby/1.8/irb.rb:70:in `start'
        from /usr/local/jruby-trunk/lib/ruby/1.8/irb.rb:69:in `catch'
        from /usr/local/jruby-trunk/lib/ruby/1.8/irb.rb:69:in `start'
        from /usr/local/jruby-trunk/bin/jirb:19
irb(main):002:0> 
{noformat}


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to