# Upgrade alacritty_terminal in hopes to avoid PTY poll failing \(\#6715\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/252e7e94672ec638d614d630c0444ad685adb88a)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 252e7e94672ec638d614d630c0444ad685adb88a

Requested commit: 252e7e94672ec638d614d630c0444ad685adb88a

Commit: 252e7e94672ec638d614d630c0444ad685adb88a

Tree: aefb5cbdc1afc1b279e7d9beb6cb16712d4832f0

Author: Thorsten Ball

Committer: GitHub

## Message

```
Upgrade alacritty_terminal in hopes to avoid PTY poll failing (#6715)

We saw stack traces in our #panic channel pop up that failed on this
line:


https://github.com/zed-industries/alacritty/blob/33306142195b354ef3485ca2b1d8a85dfc6605ca/alacritty_terminal/src/event_loop.rs#L323-L324

With this message:

thread 'PTY reader' panicked at 'called `Result::unwrap()` on an `Err`
value: Os { code: 9, kind: Uncategorized, message: "Bad file descriptor"
}'

/Users/administrator/.cargo/git/checkouts/alacritty-afea874b09a502a5/3330614/alacritty_terminal/src/event_loop.rs:324

We don't know how to reproduce the error. It doesn't seem related to the
number of open PTY handles, because `openpty` itself didn't fail. We can
only assume that something went wrong between `openpty` and the setup of
the polling.

Since Alacritty itself changed its polling mechanism significantly by
switching from `mio` to `polling`
(https://github.com/alacritty/alacritty/pull/6846) we upgraded with the
hope that this will fix the bug.


Release Notes:

- Upgraded alacritty_terminal to newest version in order to hopefully
fix a rare panic that can occur when starting a new terminal.
```

## Parents

- [f7a2118b159ac98a4fda8f15974090781522b407](https://git.cafe/gitcafe/zed/commit/f7a2118b159ac98a4fda8f15974090781522b407?format=markdown)

- [698108ac8b23b124784b1fa3a8b7ce25f1624c93](https://git.cafe/gitcafe/zed/commit/698108ac8b23b124784b1fa3a8b7ce25f1624c93?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/252e7e94672ec638d614d630c0444ad685adb88a?format=markdown)
