Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormhutch <m.j.hutchinson@gmail.com>2016-02-22 23:53:20 +0300
committerMikayla Hutchinson <m.j.hutchinson@gmail.com>2016-03-22 01:03:02 +0300
commitb9dedbdca5b4565931f8998aee4e8c21b8de058a (patch)
tree45b9ab1a94a035b64767af39c2bf6176fac664b7 /mcs/class/Microsoft.Build
parentfb1ee675601db27d3e7e2e90e95fdb6780b737c8 (diff)
[Microsoft.Build] Set IsBackground on builder thread
It should not prevent the process from terminating. Fixes issue where the thread is not shut down if ProjectInstances are built directly instead of via the build manager.
Diffstat (limited to 'mcs/class/Microsoft.Build')
-rw-r--r--mcs/class/Microsoft.Build/Microsoft.Build.Internal/BuildNodeManager.cs5
1 files changed, 4 insertions, 1 deletions
diff --git a/mcs/class/Microsoft.Build/Microsoft.Build.Internal/BuildNodeManager.cs b/mcs/class/Microsoft.Build/Microsoft.Build.Internal/BuildNodeManager.cs
index ebfad5ba752..322006a4e84 100644
--- a/mcs/class/Microsoft.Build/Microsoft.Build.Internal/BuildNodeManager.cs
+++ b/mcs/class/Microsoft.Build/Microsoft.Build.Internal/BuildNodeManager.cs
@@ -41,7 +41,10 @@ namespace Microsoft.Build.Internal
public BuildNodeManager (BuildManager buildManager)
{
BuildManager = buildManager;
- new Thread (RunLoop).Start ();
+ new Thread (RunLoop) {
+ IsBackground = true,
+ Name = "xbuild request handler"
+ }.Start ();
}
~BuildNodeManager ()