X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=src%2Fcommon%2Frunas.h;h=9840eb056942ad7eb56fb83ee8a3aef4c29d49e4;hb=8cf66a2b6551d770a8aedf1301bcec2270041785;hp=356bb22863fe2c448fed98e8b7b90677868ba6fb;hpb=422361c276c49e1239194398f31f8842432da536;p=lttng-tools.git diff --git a/src/common/runas.h b/src/common/runas.h index 356bb2286..9840eb056 100644 --- a/src/common/runas.h +++ b/src/common/runas.h @@ -20,9 +20,16 @@ */ #include +#include int run_as_mkdir_recursive(const char *path, mode_t mode, uid_t uid, gid_t gid); int run_as_mkdir(const char *path, mode_t mode, uid_t uid, gid_t gid); int run_as_open(const char *path, int flags, mode_t mode, uid_t uid, gid_t gid); +/* + * We need to lock pthread exit, which deadlocks __nptl_setxid in the + * clone. + */ +extern pthread_mutex_t lttng_libc_state_lock; + #endif /* _RUNAS_H */