for debugging reasons I want to spot one of those bugs showing up just occasionally. Therefore I want to code a while loop in the shell
- starting the program (if it will segfault => that's what I want)
- kill the program after a certain timeout (e.g. some seconds)
Problem here is that the PID will change. Can you give me a hint on how to perform this? I use the zsh, but other shells are welcome too!