Andy Kipp
Andy Kipp
JFYI to trace this you can use this message - https://github.com/xonsh/xonsh/pull/5361#issuecomment-2078826181
I can't reproduce on mac. ```xsh zsh # login shell which xonsh # /Users/user/.local/xonsh-env/xbin/xonsh # https://github.com/anki-code/xonsh-install export SHELL="$(which xonsh)" alacritty --socket /tmp/alacritty.sock # Window with xonsh ps -ax | grep...
> Do you have any tips to help narrow it down? First of all we need to understand what signal will be produced to xonsh process on closing the window...
Good catch @FlyingWombat ! > alacritty is sending a SIGHUP when the window is closed And: > SIGHUP ("signal hang up") is a signal sent to a process when its...
I got this on mac: ```xsh # Terminal 1 xonsh --no-rc # Terminal 2 ps ax | grep 'xonsh --no-rc' # xonsh pid 100 kill -SIGHUP 100 # Terminal 1...
I've understood the case: 1. When you send SIGHUP this handler is working (line 62 do `sys.exit()`): https://github.com/xonsh/xonsh/blob/4a2cfc6415ab6fce8f0b3c9adc3a2a16cb5bc684/xonsh/built_ins.py#L47-L64 2. The `sys.exit()` function in fact just raises `SystemExit` exception. 3. This...
@FlyingWombat could you please try #5399? ```xsh xpip install -U --force-reinstall git+https://github.com/xonsh/xonsh@sig_exit_fix ```
_Originally posted by @FlyingWombat in https://github.com/xonsh/xonsh/issues/5399#issuecomment-2099475119_: Tried this out, and while it is exiting when sent SIGHUP now, it doesn't always exit properly. What I noticed is, after xonsh exits,...
@FlyingWombat thanks for help! I can repeat this on Mac with iTerm2 or Alacritty: ```xsh # Terminal 1 # Run iTerm or Alacritty with zsh as default shell xonsh -DFFF=1...
@FlyingWombat I fixed stty state for ptk, please test again: ```xsh xpip install -U --force-reinstall git+https://github.com/xonsh/xonsh@sig_exit_fix # restart xonsh xonfig # Git SHA | 5fa579a # https://github.com/xonsh/xonsh/pull/5399/commits ```