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'd be tempted to say that bazelisk should only forward SIGTERM and not forward SIGINT.
I.e. hitting CTRL-C on an interactive program should only generate a single SIGINT in the running program. But sending a SIGTERM to bazelisk (via child PID after fork/exec) should also trigger a SIGTERM in the running process.
What do the maintainers here think?
The text was updated successfully, but these errors were encountered:
gibfahn
added a commit
to gibfahn/bazelisk
that referenced
this issue
Jun 6, 2022
Since we handle os.Interrupt but no longer forward it to child
processes, this commit also removes platform-specific handling for
Windows, preferring to use child.Process.Kill() in all cases.
Fixesbazelbuild#307.
Since we handle os.Interrupt but no longer forward it to child
processes, this commit also removes platform-specific handling for
Windows, preferring to use child.Process.Kill() in all cases.
Fixes#307.
With this
py_binary()
:And then when I run it and hit CTRL-C once:
This appears to be caused by the signal forwarding in the Go version:
bazelisk/core/core.go
Lines 438 to 442 in 15abf0e
The Python version notably does not have this behaviour:
bazelisk/bazelisk.py
Lines 445 to 452 in 81f38ed
I'd be tempted to say that bazelisk should only forward SIGTERM and not forward SIGINT.
I.e. hitting CTRL-C on an interactive program should only generate a single SIGINT in the running program. But sending a SIGTERM to bazelisk (via child PID after fork/exec) should also trigger a SIGTERM in the running process.
What do the maintainers here think?
The text was updated successfully, but these errors were encountered: