Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

If exec()ing the remote command fails, pause briefly #1053

Merged
merged 1 commit into from
May 18, 2020

Conversation

cgull
Copy link
Member

@cgull cgull commented Jul 10, 2019

This came up on IRC, where user concatime was asking why mosh -p PORT NAME 'tmux attach -t irc' didn't work. (The correct command is mosh -p PORT NAME -- tmux attach -t irc). I realized that it's hard to debug this because mosh-server prints an error message for the failed exec, but exits immediately, and normally mosh-client clears the screen on exit.

This adds a 3-second delay before exit, after exec() fails, so the error is visible.

@Kriechi
Copy link

Kriechi commented Jul 10, 2019

Thank you! I encountered the same issue soo many times! ❤️ 👍 🎉

@Kriechi
Copy link

Kriechi commented Nov 16, 2019

@andersk @cgull anything holding this PR back?

This makes the resulting error from mosh-server visible in ordinary usage.
@cgull cgull merged commit 03087e7 into mobile-shell:master May 18, 2020
@eminence eminence added this to the 1.4.0 milestone Aug 12, 2022
@cgull cgull deleted the pause-on-exec-fail branch November 16, 2022 02:07
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.

None yet

3 participants