You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While running a blocking subprocess, yazi will stop responding to any SIGTERM. One of the side-effects from this is really long shutdown times on systemd-based OSes, if you happen to have yazi running in the background while shutting down.
When shutting down, systemd will try to send SIGTERM to politely terminate any running processes. It will wait for a certain time-out length (1m30s for me), before finally giving up with a SIGKILL instead.
From the journalctl logs
Mar 03 04:36:57 $HOST systemd[1]: Stopping User Login Management...
Mar 03 04:36:57 $HOST systemd[1]: Stopping Permit User Sessions...
Mar 03 04:36:57 $HOST systemd[1]: Stopping User Manager for UID 1000...
...
Mar 03 04:36:56 $HOST systemd[1]: session-3.scope: Stopping timed out. Killing.
Mar 03 04:36:56 $HOST systemd[1]: session-3.scope: Killing process 1090825 (.yazi-wrapped) with signal SIGKILL.
Mar 03 04:36:56 $HOST systemd[1]: session-3.scope: Failed to kill control group /user.slice/user-1000.slice/session-3.scope, ignoring: Invalid argument
Mar 03 04:36:56 $HOST systemd[1]: session-3.scope: Failed with result 'timeout'.
Mar 03 04:36:57 $HOST systemd[1]: Stopped Session 3 of User $USER.
Expected Behavior
yazi should always respond to SIGTERM.
To Reproduce
Run EDITOR=vim yazi and edit any text file
From a different shell, run killall yazi (or killall .yazi-wrapped on Nix)
You could also run shell --block, then sleep 15s for a similar effect.
I'm going to lock this issue because it has been closed for 30 days. ⏳
This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
What system are you running Yazi on?
Linux Wayland
What terminal are you running Yazi in?
kitty v0.32.2
Did you try the latest main branch to see if the problem got fixed?
Tried, but the problem still happens.
yazi --debug
outputDescribe the bug
While running a blocking subprocess, yazi will stop responding to any
SIGTERM
. One of the side-effects from this is really long shutdown times on systemd-based OSes, if you happen to have yazi running in the background while shutting down.When shutting down, systemd will try to send
SIGTERM
to politely terminate any running processes. It will wait for a certain time-out length (1m30s for me), before finally giving up with aSIGKILL
instead.From the
journalctl
logsExpected Behavior
yazi should always respond to
SIGTERM
.To Reproduce
EDITOR=vim yazi
and edit any text filekillall yazi
(orkillall .yazi-wrapped
on Nix)You could also run
shell --block
, thensleep 15s
for a similar effect.Configuration
no config
Anything else?
I recently read this: https://registerspill.thorstenball.com/p/how-to-lose-control-of-your-shell, and the symptoms look eerily similar to what I'm experiencing (I'm also using
zsh
). Could it be related?The text was updated successfully, but these errors were encountered: