#include <signal.h>
#include <stdbool.h>
#include <stdio.h>
-//#include <stdio_ext.h>
+#include <stdio_ext.h>
#include <stdlib.h>
#include <string.h>
#include <sys/mman.h>
#include "macro.h"
#include "missing.h"
#include "process-util.h"
-//#include "raw-clone.h"
+#include "raw-clone.h"
#include "signal-util.h"
//#include "stat-util.h"
#include "string-table.h"
return 0;
}
-#if 0 /// UNNEEDED by elogind
int rename_process(const char name[]) {
static size_t mm_size = 0;
static char *mm = NULL;
return !truncated;
}
-#endif // 0
int is_kernel_thread(pid_t pid) {
_cleanup_free_ char *line = NULL;
sigkill_wait(*pid);
}
+#endif // 0
void sigterm_wait(pid_t pid) {
assert(pid > 1);
return r;
}
-#endif // 0
int getenv_for_pid(pid_t pid, const char *field, char **ret) {
_cleanup_fclose_ FILE *f = NULL;