mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-11 15:41:00 +02:00
set threadnames to unique values
Signed-off-by: Thilo Graf <dbt@novatux.de>
Origin commit data
------------------
Branch: ni/coolstream
Commit: 5307e62506
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2017-06-07 (Wed, 07 Jun 2017)
------------------
This commit was generated by Migit
This commit is contained in:
committed by
Michael Liebmann
parent
1409e2b754
commit
b06b9394b7
@@ -120,7 +120,7 @@ void thread_cleanup (void *p)
|
||||
|
||||
#ifndef Y_CONFIG_BUILD_AS_DAEMON
|
||||
void * nhttpd_main_thread(void *) {
|
||||
set_threadname(__func__);
|
||||
set_threadname("yweb:main_thread");
|
||||
pthread_setcanceltype(PTHREAD_CANCEL_ASYNCHRONOUS, 0);
|
||||
pthread_setcancelstate(PTHREAD_CANCEL_ENABLE, NULL);
|
||||
aprintf("Webserver %s tid %ld\n", WEBSERVERNAME, syscall(__NR_gettid));
|
||||
@@ -338,7 +338,7 @@ bool Cyhttpd::Configure() {
|
||||
// Main Webserver call
|
||||
//-----------------------------------------------------------------------------
|
||||
void Cyhttpd::run() {
|
||||
set_threadname(__func__);
|
||||
set_threadname("yweb:run");
|
||||
if (webserver) {
|
||||
if (flag_threading_off)
|
||||
webserver->is_threading = false;
|
||||
|
Reference in New Issue
Block a user