Issue 5800 in pharo: stdin hangs until EOF

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Issue 5800 in pharo: stdin hangs until EOF

pharo
Status: Accepted
Owner: [hidden email]
Labels: Type-Bug

New issue 5800 by [hidden email]: stdin hangs until EOF
http://code.google.com/p/pharo/issues/detail?id=5800

Pharo2.0a
Latest update: #20041

1. Start cog from terminal
2. In image, "FileStream stdin nextLine"
3. In terminal, type some chars and a newline

What is the expected output?
#nextLine should return the typed characters

What do you see instead?
The image is still hanging in the vm

If you then type an EOF into the terminal (e.g. ctrl-D on Mac), #nextLine  
returns

On what operating system? OS X 10.7.3


_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker
Reply | Threaded
Open this post in threaded view
|

Re: Issue 5800 in pharo: stdin hangs until EOF

pharo
Updates:
        Status: FixReviewNeeded

Comment #1 on issue 5800 by [hidden email]: stdin hangs until EOF
http://code.google.com/p/pharo/issues/detail?id=5800

Here's a fix disabling read buffering on stdin.

After filing in, try steps 1 - 3 above, doing a "printIt" for step 2, and  
you will get the expected output.

Attachments:
        FileStream class-stdin.st  307 bytes


_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker
Reply | Threaded
Open this post in threaded view
|

Re: Issue 5800 in pharo: stdin hangs until EOF

pharo
In reply to this post by pharo

Comment #3 on issue 5800 by [hidden email]: stdin hangs until EOF
http://code.google.com/p/pharo/issues/detail?id=5800

Fix works in 1.3, 1.4, and 2.0...


_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker
Reply | Threaded
Open this post in threaded view
|

Re: Issue 5800 in pharo: stdin hangs until EOF

pharo
Updates:
        Status: FixToInclude

Comment #4 on issue 5800 by [hidden email]: stdin hangs until EOF
http://code.google.com/p/pharo/issues/detail?id=5800

(No comment was entered for this change.)


_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker
Reply | Threaded
Open this post in threaded view
|

Re: Issue 5800 in pharo: stdin hangs until EOF

pharo
Updates:
        Status: Integrated

Comment #5 on issue 5800 by [hidden email]: stdin hangs until EOF
http://code.google.com/p/pharo/issues/detail?id=5800

in 2.0 050


_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker