mirror of
https://github.com/asciinema/asciinema.git
synced 2025-12-15 19:28:00 +01:00
Fix _read on OSX (fixes #3)
This commit is contained in:
@@ -212,6 +212,10 @@ class PtyRecorder(object):
|
||||
|
||||
if self.master_fd in rfds:
|
||||
data = os.read(self.master_fd, 1024)
|
||||
|
||||
if len(data) == 0:
|
||||
break
|
||||
|
||||
self._handle_master_read(data)
|
||||
|
||||
if pty.STDIN_FILENO in rfds:
|
||||
|
||||
Reference in New Issue
Block a user