[profiler] Clean up and improve the helper thread code.
commitb5205f797ced7bff985d9328dfbc058bd0beb6a9
authorAlex Rønne Petersen <alexrp@xamarin.com>
Tue, 13 Sep 2016 09:34:22 +0000 (13 11:34 +0200)
committerAlex Rønne Petersen <alexrp@xamarin.com>
Sun, 2 Oct 2016 16:53:20 +0000 (2 18:53 +0200)
tree5d367f7571f536355a5975a0a0cacb11f1d60815
parent9127dfaf88a3b0b10a642f110d3b4f2e0e9ddbc0
[profiler] Clean up and improve the helper thread code.

* Don't invoke undefined behavior if an fd is >= FD_SETSIZE.
* Allow multiple command sockets.
* Close the command socket(s) on shutdown.
* Properly run cleanup logic on shutdown.
mono/profiler/mono-profiler-log.c