MCPcopy Create free account
hub / github.com/Tencent/phxsql / kill_broken_server

Function kill_broken_server

phx_percona/percona/sql/mysqld.cc:6597–6609  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6595
6596#ifdef SIGNALS_DONT_BREAK_READ
6597inline void kill_broken_server()
6598{
6599 /* hack to get around signals ignored in syscalls for problem OS's */
6600 if (mysql_get_fd(unix_sock) == INVALID_SOCKET ||
6601 (!opt_disable_networking &&
6602 mysql_socket_getfd(base_ip_sock) == INVALID_SOCKET))
6603 {
6604 select_thread_in_use = 0;
6605 /* The following call will never return */
6606 DBUG_PRINT("general", ("killing server because socket is closed"));
6607 kill_server((void*) MYSQL_KILL_SIGNAL);
6608 }
6609}
6610#define MAYBE_BROKEN_SYSCALL kill_broken_server();
6611#else
6612#define MAYBE_BROKEN_SYSCALL

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected