mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Manual merge from the mysql-5.1-bugteam.
This commit is contained in:
@ -5302,12 +5302,16 @@ pthread_handler_t handle_connections_sockets(void *arg __attribute__((unused)))
|
||||
pthread_handler_t handle_connections_namedpipes(void *arg)
|
||||
{
|
||||
HANDLE hConnectedPipe;
|
||||
OVERLAPPED connectOverlapped = {0};
|
||||
OVERLAPPED connectOverlapped= {0};
|
||||
THD *thd;
|
||||
my_thread_init();
|
||||
DBUG_ENTER("handle_connections_namedpipes");
|
||||
connectOverlapped.hEvent = CreateEvent(NULL, TRUE, FALSE, NULL);
|
||||
|
||||
connectOverlapped.hEvent= CreateEvent(NULL, TRUE, FALSE, NULL);
|
||||
if (!connectOverlapped.hEvent)
|
||||
{
|
||||
sql_print_error("Can't create event, last error=%u", GetLastError());
|
||||
unireg_abort(1);
|
||||
}
|
||||
DBUG_PRINT("general",("Waiting for named pipe connections."));
|
||||
while (!abort_loop)
|
||||
{
|
||||
@ -5330,7 +5334,8 @@ pthread_handler_t handle_connections_namedpipes(void *arg)
|
||||
{
|
||||
CloseHandle(hPipe);
|
||||
if ((hPipe= CreateNamedPipe(pipe_name,
|
||||
PIPE_ACCESS_DUPLEX|FILE_FLAG_OVERLAPPED,
|
||||
PIPE_ACCESS_DUPLEX |
|
||||
FILE_FLAG_OVERLAPPED,
|
||||
PIPE_TYPE_BYTE |
|
||||
PIPE_READMODE_BYTE |
|
||||
PIPE_WAIT,
|
||||
@ -5350,7 +5355,8 @@ pthread_handler_t handle_connections_namedpipes(void *arg)
|
||||
hConnectedPipe = hPipe;
|
||||
/* create new pipe for new connection */
|
||||
if ((hPipe = CreateNamedPipe(pipe_name,
|
||||
PIPE_ACCESS_DUPLEX|FILE_FLAG_OVERLAPPED,
|
||||
PIPE_ACCESS_DUPLEX |
|
||||
FILE_FLAG_OVERLAPPED,
|
||||
PIPE_TYPE_BYTE |
|
||||
PIPE_READMODE_BYTE |
|
||||
PIPE_WAIT,
|
||||
|
Reference in New Issue
Block a user