Skip to content

Fix $EDITOR support#222

Merged
osa1 merged 1 commit into
masterfrom
fix-C-x
Jun 28, 2020
Merged

Fix $EDITOR support#222
osa1 merged 1 commit into
masterfrom
fix-C-x

Conversation

@osa1

@osa1 osa1 commented Jun 28, 2020

Copy link
Copy Markdown
Owner

Previously running $EDITOR would block tokio event loop, which causes
all kinds of panics, and timeouts in connections, see #185 as an
example.

We now run $EDITOR in a new thread, and stop reading stdin in the input
handler task during that. Also fixes termbox's suspend method, which
previously keps using tty after suspend.

See also module documentation of editor.

Fixes #185

@osa1
osa1 force-pushed the fix-C-x branch 3 times, most recently from 3b005d0 to 65e9079 Compare June 28, 2020 13:45
Previously running $EDITOR would block tokio event loop, which causes
all kinds of panics, and timeouts in connections, see #185 as an
example.

We now run $EDITOR in a new thread, and stop reading stdin in the input
handler task during that. Also fixes termbox's suspend method, which
previously keps using tty after suspend.

See also module documentation of `editor`.

Fixes #185
@osa1

osa1 commented Jun 28, 2020

Copy link
Copy Markdown
Owner Author

I tried this by running $EDITOR for about 5 minutes while being connected to 4 servers, and nothing broke! Merging.

@osa1
osa1 merged commit 802d799 into master Jun 28, 2020
osa1 added a commit that referenced this pull request Jun 28, 2020
@osa1
osa1 deleted the fix-C-x branch October 12, 2020 07:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Panic in pinger.rs

1 participant