[profiler] Clean up and improve the helper thread code.
commit70db685357e7dab6347c9b7fb8b5cb927292e906
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 20:23:45 +0000 (2 22:23 +0200)
tree11c77152f6e63864d4bdc5e5085b996358efa39a
parentfa7a3ddc9b37b6c972ef6e135401af3969b4cb1c
[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