diff options
author | unknown <petr@mysql.com> | 2005-08-05 17:02:06 +0400 |
---|---|---|
committer | unknown <petr@mysql.com> | 2005-08-05 17:02:06 +0400 |
commit | cd3fa684cec86172ee3905675886f4efb05e407a (patch) | |
tree | c17b432f59765ab0f44f3da33b763ee66db3f3b1 /server-tools/instance-manager/manager.cc | |
parent | d976f87fb47310581a73903581a57e67a530009b (diff) | |
download | mariadb-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.cc | 22 |
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 */ |