Bug 904839 - Use os.read instead of readline to prevent a potential deadlock, r=jhammel