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
{{ message }}
Repository navigation
Support passing SIGINT to scripts that are running via devbox run #1815
It does seem to be working some of the time. I've yet to determine why is it not working all the time. Some scripts correctly respond to SIGINT when run but they don't when run via devbox run.
and run devbox run zzz followed by ctrl-c, the sleep process exits. This is what I'd expect because the shell should be signaling the entire process group.
Activity
kadaan commentedon Feb 15, 2024
It does seem to be working some of the time. I've yet to determine why is it not working all the time. Some scripts correctly respond to SIGINT when run but they don't when run via
devbox run.kadaan commentedon Feb 15, 2024
This seems similar to the issues that this PR fixed in dagger: dagger/dagger#5712
Their change is essentially doing the following to nix/run.go:
With my limited testing, this seems to fix the issue.
gcurtis commentedon Feb 21, 2024
Thanks for the submitting a PR with your fix. I'd still like to understand a bit more why this is happening. Could you provide a few more details?
When I try to repro using this config:
{ "shell": { "scripts": { "zzz": "/bin/sleep 5" } } }and run
devbox run zzzfollowed by ctrl-c, the sleep process exits. This is what I'd expect because the shell should be signaling the entire process group.kadaan commentedon Feb 22, 2024
@gcurtis Here is some more info:
devbox run...seven1m commentedon Oct 23, 2024
I'm seeing this too. I can reliably reproduce on devbox 0.13.5 with the simple ruby script:
sleepHere is a screen recording:
Screen.Recording.2024-10-23.at.1.38.24.PM.mov