Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prevent infinite loop in case of broken zpty file descriptor (#31)
In some cases, the fd created by zpty can become corrupted: if the other end was disconnected, if the fd was closed and so on. If we ignore this condition, then we enter a infinite loop. Instead, when the fd becomes invalid, unregister the corresponding worker and notify the callback.
- Loading branch information