scientific-python / spin

Developer tool for scientific Python libraries
BSD 3-Clause "New" or "Revised" License
101 stars 20 forks source link

spin catches SIGINT and send SIGTERM to subprocess #235

Open adrinjalali opened 1 month ago

adrinjalali commented 1 month ago

Seems like spin is sending a SIGTERM (or SIGKILL?)signal to the underlying process when it receives a SIGINT, which seems odd when working in a spin run python -i /path/to/script.py kinda command.

Shouldn't spin forward a SIGINT instead? while running the process in python, I wouldn't expect CTRL+C to exit the process really.

stefanv commented 3 weeks ago

Hrm, we're not supposed to be sending anything special; I can take a look.