Skip to content

Using ctrl-z to background a process kills the process instead #2105

@freshtonic

Description

@freshtonic

cmux version

0.62.2

macOS version

macOS 15.5 Sequioia

Mac chip

Apple Silicon (M1/M2/M3/M4)

Installation method

Direct download (DMG)

Can you reproduce this on cmux NIGHTLY?

Yes, it still reproduces on NIGHTLY

Bug description

Backgrounding a process with ctrl-z (e.g. a running vim) causes the background processes to be killed.

Expected behavior

Nothing (where "nothing" means whatever bash would normally do with a ctrl-z'd process).

Steps to reproduce

  1. Open cmux
  2. Run vim (or anything else that stays running in the foreground)
  3. Send ctrl-z
  4. See something like the following output:
$ vim bashrc

[1]+  Stopped                 /opt/homebrew/bin/nvim bashrc
bash: warning: deleting stopped job 1 with process group 47532
[3]   Done                    { local branch dirty_opt=""; branch=$(git branch --show-current 2> /dev/null); if [[ -n "$branch" ]]; then
    local first; first=$(git status --porcelain -uno 2> /dev/null | head -1); [[ -n "$first" ]] && dirty_opt="--status=dirty"; _cmux_send "report_git_branch $branch $dirty_opt --tab=$CMUX_TAB_ID --panel=$CMUX_PANEL_ID";
else
    _cmux_send "clear_git_branch --tab=$CMUX_TAB_ID --panel=$CMUX_PANEL_ID";
fi; } > /dev/null 2>&1

Shell and environment

GNU bash, version 5.2.26(1)-release (aarch64-apple-darwin22.6.0)
Copyright (C) 2022 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html

Relevant logs or crash reports


Screenshots or screen recordings

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions