X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fcommon%2Frunas.h;h=9840eb056942ad7eb56fb83ee8a3aef4c29d49e4;hp=356bb22863fe2c448fed98e8b7b90677868ba6fb;hb=ca22feea083301934d1c8511851c86fb008c0697;hpb=d14d33bf091e72b23b1f90ea18a0a01bed098b76 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 */