diff options
Diffstat (limited to 'server-tools/instance-manager/mysqlmanager.cc')
-rw-r--r-- | server-tools/instance-manager/mysqlmanager.cc | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/server-tools/instance-manager/mysqlmanager.cc b/server-tools/instance-manager/mysqlmanager.cc index e4cdedc0e0e..cecbdafb0c4 100644 --- a/server-tools/instance-manager/mysqlmanager.cc +++ b/server-tools/instance-manager/mysqlmanager.cc @@ -71,7 +71,6 @@ static void daemonize(const char *log_file_name); static void angel(); static struct passwd *check_user(const char *user); static int set_user(const char *user, struct passwd *user_info); -static bool check_if_linuxthreads(); #endif @@ -111,9 +110,6 @@ int main(int argc, char *argv[]) } } - if (check_if_linuxthreads()) - goto main_end; /* out of resources */ - if (Options::Daemon::run_as_service) { /* forks, and returns only in child */ @@ -395,28 +391,4 @@ spawn: exit(0); } } - -extern "C" { -static void *check_if_linuxthreads_thread_func(void *arg) -{ - pid_t main_pid= *(pid_t*) arg; - linuxthreads= getpid() != main_pid; - return NULL; -} -} /* extern "C" */ - - -static bool check_if_linuxthreads() -{ - pid_t pid= getpid(); - pthread_t thread_id; - int rc; - - rc= pthread_create(&thread_id, NULL, check_if_linuxthreads_thread_func, - (void*) &pid); - if (rc == 0) - rc= pthread_join(thread_id, NULL); - - return test(rc); -} #endif |