summaryrefslogtreecommitdiff
path: root/server-tools/instance-manager/manager.cc
diff options
context:
space:
mode:
authorunknown <petr@mysql.com>2005-08-05 17:02:06 +0400
committerunknown <petr@mysql.com>2005-08-05 17:02:06 +0400
commitcd3fa684cec86172ee3905675886f4efb05e407a (patch)
treec17b432f59765ab0f44f3da33b763ee66db3f3b1 /server-tools/instance-manager/manager.cc
parentd976f87fb47310581a73903581a57e67a530009b (diff)
downloadmariadb-git-cd3fa684cec86172ee3905675886f4efb05e407a.tar.gz
IM port cleanup
server-tools/instance-manager/IMService.cpp: coding style fixes: tabs, trailing spaces, offset e.t.c server-tools/instance-manager/WindowsService.cpp: coding style fixes: tabs, trailing spaces, offset e.t.c server-tools/instance-manager/WindowsService.h: coding style fixes: tabs, trailing spaces, offset e.t.c server-tools/instance-manager/instance.cc: cleanup & coding style fixes: tabs, trailing spaces, offset e.t.c server-tools/instance-manager/listener.cc: coding style fixes: tabs, trailing spaces, offset e.t.c server-tools/instance-manager/manager.cc: coding style fixes: tabs, trailing spaces, offset e.t.c server-tools/instance-manager/options.cc: coding style fixes: tabs, trailing spaces, offset e.t.c server-tools/instance-manager/user_map.cc: simplify password file processing
Diffstat (limited to 'server-tools/instance-manager/manager.cc')
-rw-r--r--server-tools/instance-manager/manager.cc22
1 files changed, 11 insertions, 11 deletions
diff --git a/server-tools/instance-manager/manager.cc b/server-tools/instance-manager/manager.cc
index e3daca71898..09d30e1312f 100644
--- a/server-tools/instance-manager/manager.cc
+++ b/server-tools/instance-manager/manager.cc
@@ -238,20 +238,20 @@ void manager(const Options &options)
process_alarm(signo);
else
#endif
+ {
+ if (!guardian_thread.is_stopped())
+ {
+ bool stop_instances= true;
+ guardian_thread.request_shutdown(stop_instances);
+ pthread_cond_signal(&guardian_thread.COND_guardian);
+ }
+ else
{
- if (!guardian_thread.is_stopped())
- {
- bool stop_instances= true;
- guardian_thread.request_shutdown(stop_instances);
- pthread_cond_signal(&guardian_thread.COND_guardian);
- }
- else
- {
- thread_registry.deliver_shutdown();
- shutdown_complete= TRUE;
- }
+ thread_registry.deliver_shutdown();
+ shutdown_complete= TRUE;
}
}
+ }
err:
/* delete the pid file */