Nothing to see here, move along...

This commit is contained in:
2016-09-17 15:02:58 +03:00
parent 1c2473505d
commit 95a6f1fe97
8 changed files with 54 additions and 15 deletions

View File

@@ -85,7 +85,8 @@ static void* servlet(void *args) /* Serve the connection -- threadable */
SSL_free(agent->ssl); /* release SSL state */
close(agent->sd); /* close connection */
agent->busy = 0;
return 0;
pthread_detach(pthread_self());
pthread_exit(NULL);
}
static void send_reject_msg(SSL *ssl)
@@ -157,4 +158,6 @@ void* agent_pool(void *args)
}
pthread_attr_destroy(&attr);
pthread_mutex_destroy(&mutex);
pthread_detach(pthread_self());
pthread_exit(NULL);
}