mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-09-01 18:01:13 +02:00
system/set_threadname: fix
This commit is contained in:
@@ -9,6 +9,6 @@ inline void set_threadname(const char *name)
|
|||||||
char threadname[17];
|
char threadname[17];
|
||||||
strncpy(threadname, name, sizeof(threadname));
|
strncpy(threadname, name, sizeof(threadname));
|
||||||
threadname[16] = 0;
|
threadname[16] = 0;
|
||||||
prctl (PR_SET_NAME, (unsigned long)&threadname);
|
prctl (PR_SET_NAME, (unsigned long)threadname);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user