Fix: Remove dependency on glibc 2.12 caused by pthread_setname_np
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 30 Sep 2015 20:48:12 +0000 (16:48 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 30 Sep 2015 21:06:22 +0000 (17:06 -0400)
commit8c40c9d05cca5c9fd6b98055cb26462bc0efdab2
treededc2acecb748996df636503e4ee7e92a4675fba
parent8ce28af8cd87de4cbbe2ee2fe490b9abff807ab7
Fix: Remove dependency on glibc 2.12 caused by pthread_setname_np

prctl() can be used to set the same attribute set by
pthread_setname_np, but doesn't introduce a dependency on a newer
glibc. Using prctl(PR_SET_NAME) introduces a soft dependency on
Linux 2.6.9. However, the worker won't fail to launch if the call
fails as it is set out of convenience (debugger output).

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/common/runas.c
This page took 0.027053 seconds and 4 git commands to generate.