Hello! I have a quick and maybe dumb question about signals in apptainer. How does apptainer intercept and handle signals?
Let's say I first enter the container and run a Python script
```
apptainer exec mycontainer.sif /usr/bin/python3 myPyScript.py
```
and then the Python script sets up my custom environment and launches my main program using `subprocess.Popen()`.
When my main program receives a crash signal such as SIGSEGV, is apptainer going to kill it? does it do something special? or maybe it depends? when would apptainer send signals to a child process?
I've noticed that sometimes when my main program crashed hard, it brought down the entire apptainer. I also have a signal handler in my main program, but it wasn't always able to catch the signal in some cases after moving into the container. I don't think apptainer is doing wrong, but just want to understand how it handles signals and maybe get some hints.
Thanks!