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
I am trying to trap SIGINT in my ahoy cmd to kill a process gracefully, but ahoy dumps me straight back into the shell as soon as I hit Ctrl-C. I have also tried setting a custom bash entrypoint to trap SIGINT then manually call kill -SIGINT $child_process in an attempt to prevent this. Both options seems to receive and trap the interrupt thus calling the clean up code. However, because ahoy has already dropped me back into the shell (and printed the PS1 etc) the cleanup output makes quite a mess of my terminal.
The trap/cleanup functionality works perfectly fine (no mess) when not called using ahoy.
Is is possible for ahoy to pass on the SIGINT to the child process without being immediately dropped back into the shell?
The text was updated successfully, but these errors were encountered:
I'm one of the new maintainers that have just been added to the project, I use ahoy daily and am interested in improving its capabilities for other users.
At present we are focusing on some chores such as getting the current code and dependencies updated to recent Go modules, and getting a new release out with those updates.
We can continue the discussion about your issue here, but I'm just letting you know it may not be actioned straight away.
I am trying to trap SIGINT in my ahoy cmd to kill a process gracefully, but ahoy dumps me straight back into the shell as soon as I hit Ctrl-C. I have also tried setting a custom bash entrypoint to trap SIGINT then manually call
kill -SIGINT $child_process
in an attempt to prevent this. Both options seems to receive and trap the interrupt thus calling the clean up code. However, because ahoy has already dropped me back into the shell (and printed the PS1 etc) the cleanup output makes quite a mess of my terminal.The trap/cleanup functionality works perfectly fine (no mess) when not called using ahoy.
Is is possible for ahoy to pass on the SIGINT to the child process without being immediately dropped back into the shell?
The text was updated successfully, but these errors were encountered: