mirror of
https://github.com/asciinema/asciinema.git
synced 2025-12-16 19:58:03 +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:
|
if self.master_fd in rfds:
|
||||||
data = os.read(self.master_fd, 1024)
|
data = os.read(self.master_fd, 1024)
|
||||||
|
|
||||||
|
if len(data) == 0:
|
||||||
|
break
|
||||||
|
|
||||||
self._handle_master_read(data)
|
self._handle_master_read(data)
|
||||||
|
|
||||||
if pty.STDIN_FILENO in rfds:
|
if pty.STDIN_FILENO in rfds:
|
||||||
|
|||||||
Reference in New Issue
Block a user