mosh client hangs on suspend if launched within wrapper script #401

Closed
andersk opened this Issue Mar 14, 2013 · 1 comment

Projects

None yet

2 participants

@andersk
Member
andersk commented Mar 14, 2013

The new suspend feature ( Ctrl-^ Ctrl-Z ) in mosh 1.2.3.95rc1 doesn’t quite work when mosh was launched within a wrapper script, such as sh -c 'mosh HOST'. It freezes at [mosh is suspended.] until I press Ctrl-Z again.

$ mosh linerva
^^^Z

[mosh is suspended.]

[1]+  Stopped                 mosh linerva
$ fg
mosh linerva
^^.
[mosh is exiting.]
$ sh -c 'mosh linerva'
^^^Z

[mosh is suspended.]
# <-- freezes here, until I press ^Z again:
^Z
[1]+  Stopped                 sh -c 'mosh linerva'
$ fg
sh -c 'mosh linerva'
^^.
[mosh is exiting.]
Owner
keithw commented Mar 14, 2013

Somehow nano does accomplish this successfully when you use their in-process suspend (triggered by Ctrl-Z). I guess we should figure out what we need to do differently.

@keithw keithw closed this in 61c6ee6 Mar 27, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment