From 85834c3b030e6680b02cf8b49ea71903d30a4ea2 Mon Sep 17 00:00:00 2001 From: unknown Date: Fri, 5 Aug 2005 14:35:30 +0400 Subject: IM port fixes: fix crash on startup, add more error checking, get rid of unnecessary code. server-tools/instance-manager/commands.cc: fix memory leak server-tools/instance-manager/guardian.cc: don't check pthread_mutex_lock/unlock return value, as it never returns error if properly used (no self deadlocks) and initialized server-tools/instance-manager/guardian.h: prototype fixed server-tools/instance-manager/instance_map.cc: don't check pthread_mutex_lock/unlock status, as it never returns error if properly used (no self deadlocks) and initialized server-tools/instance-manager/instance_map.h: prototype fixed server-tools/instance-manager/listener.cc: initialize highest-numbered descriptor to 0 for select before setting it with max(n, sockets[i]), ifdef unix-specific code server-tools/instance-manager/manager.cc: remove commented stuff server-tools/instance-manager/options.cc: fix crash in load_defaults, which happened on all Unix systems due to const char *Options::config_file= NULL. Check return value for GetModuleFileName. Get rid of obscure default_config_file[FN_REFLEN]= "/etc/my.cnf"; which was never used --- server-tools/instance-manager/manager.cc | 1 - 1 file changed, 1 deletion(-) (limited to 'server-tools/instance-manager/manager.cc') diff --git a/server-tools/instance-manager/manager.cc b/server-tools/instance-manager/manager.cc index 3c809fdfce2..e3daca71898 100644 --- a/server-tools/instance-manager/manager.cc +++ b/server-tools/instance-manager/manager.cc @@ -97,7 +97,6 @@ void set_signals(sigset_t *set) int my_sigwait(const sigset_t *set, int *sig) { -// MSG msg; while (!have_signal) { Sleep(100); -- cgit v1.2.1