set useful thread names for all spawned threads

This commit is contained in:
Stefan Seyfried
2017-02-12 15:17:32 +01:00
committed by svenhoefer
parent 6fdd920e42
commit 5188f721c4
14 changed files with 26 additions and 6 deletions

View File

@@ -118,7 +118,7 @@ CWebserver::~CWebserver() {
#define MAX_TIMEOUTS_TO_CLOSE 10
#define MAX_TIMEOUTS_TO_TEST 100
bool CWebserver::run(void) {
set_threadname(__func__);
set_threadname("ywebsrv::run");
if (!listenSocket.listen(port, HTTPD_MAX_CONNECTIONS)) {
if (port != 80) {
fprintf(stderr, "[yhttpd] Socket cannot bind and listen on port %d Abort.\n", port);