Skip to content

^C kills the background processes launched at config.fish #6828

@acomagu

Description

@acomagu

Ctrl-C seems to kill the background processes lunched at config.fish.

(sh -c 'env -i TERM=$TERM HOME=$(mktemp -d) fish')
~> ps
    PID TTY          TIME CMD
 227597 pts/9    00:00:00 fish
 227605 pts/9    00:00:04 python3
 227670 pts/9    00:00:00 ps
~> echo 'sleep INF &' >~/.config/fish/config.fish
~> fish
Welcome to fish, the friendly interactive shell
Type `help` for instructions on how to use fish
~> ps
    PID TTY          TIME CMD
 227597 pts/9    00:00:00 fish
 227605 pts/9    00:00:16 python3
 227879 pts/9    00:00:00 fish
 227881 pts/9    00:00:00 sleep
 227896 pts/9    00:00:00 ps
~>     # <- Hit Ctrl-C
~> ps
    PID TTY          TIME CMD
 227597 pts/9    00:00:00 fish
 227605 pts/9    00:00:16 python3 <defunct>   # python3 is exited and defunct.
 227879 pts/9    00:00:00 fish
 227937 pts/9    00:00:00 ps
# And no sleep command.

Ctrl-C key seems to kill the background jobs(sleep & python3).

I think this is bug, right?

Env:

~> fish --version
fish, version 3.1.0-436-g911465a8e
~> uname -a
Linux acm-manjaro 4.19.112-1-MANJARO #1 SMP Fri Mar 20 20:32:56 UTC 2020 x86_64 GNU/Linux

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething that's not working as intended

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions