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

[shell] does not return to the terminal by timeout #1995

Closed
stallion2303 opened this issue Apr 14, 2021 · 1 comment
Closed

[shell] does not return to the terminal by timeout #1995

stallion2303 opened this issue Apr 14, 2021 · 1 comment

Comments

@stallion2303
Copy link

Describe the bug

  • I run the command weed shell on a machine where master/filer is missing or make a mistake with the ports, then the terminal hangs
  • If I interrupt the running with Ctrl + C, then it returns to the terminal, but the cursor is not displayed

System Setup

  • CentOS Linux release 7.9.2009
  • GNU bash, version 4.2.46(2)-release (x86_64-redhat-linux-gnu)
  • weed version 30GB 2.39 742ab1e linux amd64
  • run weed shell
    master: localhost: 9333 filer: localhost: 8888

Expected behavior

  • Completion of the command by timeout in the absence of a connection to master/filer
  • If I interrupt forcibly, then display the cursor.
@thaines
Copy link

thaines commented Apr 14, 2021

I've had this happen to me - terminal gets left in raw mode, where characters aren't echoed back to the screen by default. You can still enter commands, so it's easy to fix by typing "stty sane" and hitting enter. The proper fix is to add a handler in the weed shell to ensure it always reverts to the line discipline from when it was run on exiting.

mirdhyn pushed a commit to ueni-ltd/seaweedfs that referenced this issue May 3, 2021
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

No branches or pull requests

2 participants