dotnet / corefx-tools

Place to include various misc tools for .NET and .NET Core.
MIT License
58 stars 41 forks source link

Forwarding SIGINT to perf #81

Open sebastienros opened 6 years ago

sebastienros commented 6 years ago

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.