process-util: move namespace_get_leader() to namespace-util

This allows us to drop the hack for recursive includes.
This commit is contained in:
Mike Yuan
2025-01-04 17:08:00 +01:00
parent 0577339d7d
commit a33f691374
4 changed files with 32 additions and 34 deletions
-3
View File
@@ -14,7 +14,6 @@
#include "alloc-util.h"
#include "format-util.h"
#include "macro.h"
#include "namespace-util.h"
#include "pidref.h"
#include "time-util.h"
@@ -60,8 +59,6 @@ int get_process_umask(pid_t pid, mode_t *ret);
int container_get_leader(const char *machine, pid_t *pid);
int namespace_get_leader(pid_t pid, NamespaceType type, pid_t *ret);
int wait_for_terminate(pid_t pid, siginfo_t *status);
typedef enum WaitFlags {