mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-09-01 09:51:22 +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];
|
||||
strncpy(threadname, name, sizeof(threadname));
|
||||
threadname[16] = 0;
|
||||
prctl (PR_SET_NAME, (unsigned long)&threadname);
|
||||
prctl (PR_SET_NAME, (unsigned long)threadname);
|
||||
}
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user