Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bugfix: set thread name will fail, when running as differnt user.
When using setuid/setgid, main thread don't have access to /proc/self/task/[tid]/comm, which is owned by newly created thread (root). To fix this, pthread_setname_np() was moved to newly created thread, and now it changes name for itself. Signed-off-by: Igor Podoski <igor.podoski@ts.fujitsu.com>
- Loading branch information
Igor Podoski
committed
Feb 29, 2016
1 parent
67b6e4a
commit f22a097
Showing
2 changed files
with
8 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters