Skip to content

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

Closed
@andersk

Description

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.]

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions