#include "listener.h"#include <my_global.h>#include <mysql.h>#include <violite.h>#include <sys/stat.h>#include <sys/un.h>#include "instance_map.h"#include "log.h"#include "mysql_connection.h"#include "options.h"#include "portability.h"#include "priv.h"#include "thread_registry.h"Include dependency graph for listener.cc:

Go to the source code of this file.
Classes | |
| class | Listener_thread |
Functions | |
| void | set_non_blocking (int socket) |
| void | set_no_inherit (int socket) |
| pthread_handler_t | listener (void *arg) |
| pthread_handler_t listener | ( | void * | arg | ) |
Definition at line 383 of file listener.cc.
References args, and listener().
Referenced by listener(), and manager().
00384 { 00385 Listener_thread_args *args= (Listener_thread_args *) arg; 00386 Listener_thread listener(*args); 00387 listener.run(); 00388 /* 00389 args is a stack variable because listener thread lives as long as the 00390 manager process itself 00391 */ 00392 return 0; 00393 }
Here is the call graph for this function:

Here is the caller graph for this function:

| void set_no_inherit | ( | int | socket | ) |
Definition at line 213 of file listener.cc.
References flags.
Referenced by Listener_thread::create_tcp_socket(), and Listener_thread::create_unix_socket().
00214 { 00215 #ifndef __WIN__ 00216 int flags= fcntl(socket, F_GETFD, 0); 00217 fcntl(socket, F_SETFD, flags | FD_CLOEXEC); 00218 #endif 00219 }
Here is the caller graph for this function:

| void set_non_blocking | ( | int | socket | ) |
Definition at line 202 of file listener.cc.
References flags.
Referenced by Listener_thread::create_tcp_socket(), and Listener_thread::create_unix_socket().
00203 { 00204 #ifndef __WIN__ 00205 int flags= fcntl(socket, F_GETFL, 0); 00206 fcntl(socket, F_SETFL, flags | O_NONBLOCK); 00207 #else 00208 u_long arg= 1; 00209 ioctlsocket(socket, FIONBIO, &arg); 00210 #endif 00211 }
Here is the caller graph for this function:

1.4.7

