This might not be a good solution, you'll tell me, but at least it explains what was blocking my application from stopping the script.
perf was run in a blocking way, and would not be stopped as I would send the SIGINT to the main process id (the one for perfcollect). With this solution perfcollect correctly receives the SIGINT, and can then forward it to the perf process.
I won't mind if you close it for a better solution.
This might not be a good solution, you'll tell me, but at least it explains what was blocking my application from stopping the script.
perf was run in a blocking way, and would not be stopped as I would send the SIGINT to the main process id (the one for perfcollect). With this solution perfcollect correctly receives the SIGINT, and can then forward it to the perf process.
I won't mind if you close it for a better solution.