acomagu / fish-async-prompt

Make your prompt asynchronous to improve the reactivity.
MIT License
389 stars 22 forks source link

Error when closing terminal too soon #64

Closed Susensio closed 1 year ago

Susensio commented 1 year ago

Sometimes on closing the terminal, I get an error because fish-async-prompt is running in the background. It happens when I close it fast. Is there someway to avoid this?

Screenshot from 2023-01-17 18-24-34

Susensio commented 1 year ago

This is happening only on ^D, which sends and EOF to the terminal and does not SIGINT the background process...

acomagu commented 1 year ago

@Susensio What is your Terminal Emulator?(the confirmation message is displayed by your terminal emulator, right?)

The background fish process is disowned every time so Fish shell doesn't own the process as job.

Susensio commented 1 year ago

There is a bug in Gnome Console that causes this. https://gitlab.gnome.org/GNOME/console/-/issues/127

I switched my terminal emulator and its working fine now.

acomagu commented 1 year ago

@Susensio I see, thank you!