These threads just run in the background; we don't need to wait for them
to finish, so close the handle as soon as we've gotten it.
SOCK_ASSERT("Error creating the active child threads", 1);
continue;
}
+ CloseHandle(threadId);
#else
if ((pid = fork()) == 0) // I am the child
{
SOCK_ASSERT("Error creating the passive child thread", 1);
continue;
}
+ CloseHandle(threadId);
#else
if ((pid = fork()) == 0) // I am the child
{
sock_close(sockctrl, NULL, 0);
continue;
}
+ CloseHandle(threadId);
#else
if ((pid = fork()) == 0) // I am the child
{