From ff0325f1625f2802d0080b506f164ca3aa9c1126 Mon Sep 17 00:00:00 2001 From: "anozdrin/alik@booka." <> Date: Tue, 21 Nov 2006 17:31:03 +0300 Subject: Polishing: 1) add support for joinable threads to Thread class; 2) move checking of thread model to Manager from mysqlmanager.cc, because it is needed only for IM-main process. --- server-tools/instance-manager/instance.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'server-tools/instance-manager/instance.cc') diff --git a/server-tools/instance-manager/instance.cc b/server-tools/instance-manager/instance.cc index 84986c8c5ec..42a7fc94fdb 100644 --- a/server-tools/instance-manager/instance.cc +++ b/server-tools/instance-manager/instance.cc @@ -105,7 +105,7 @@ static int wait_process(My_process_info *pi) couldn't use wait(), because it could return in any wait() in the program. */ - if (linuxthreads) + if (Manager::is_linux_threads()) wait(NULL); /* LinuxThreads were detected */ else waitpid(*pi, NULL, 0); @@ -564,7 +564,7 @@ int Instance::start() instance_monitor= new Instance_monitor(this); - if (instance_monitor == NULL || instance_monitor->start_detached()) + if (instance_monitor == NULL || instance_monitor->start(Thread::DETACHED)) { delete instance_monitor; log_error("Instance::start(): failed to create the monitoring thread" -- cgit v1.2.1