unnecessary thread address output parameter, to make this code look more
like that in pg_restore.
/* Fire up separate data transfer thread */
InitializeCriticalSection(&sysfileSection);
- {
- unsigned int tid;
-
- threadHandle = (HANDLE) _beginthreadex(0, 0, pipeThread, 0, 0, &tid);
- }
+ threadHandle = (HANDLE) _beginthreadex(NULL, 0, pipeThread, NULL, 0, NULL);
+ if (threadHandle == 0)
+ elog(FATAL, "could not create syslogger data transfer thread: %m");
#endif /* WIN32 */
/* remember active logfile parameters */