diff options
author | Sven Eden <yamakuzure@gmx.net> | 2017-01-03 11:22:56 +0100 |
---|---|---|
committer | Sven Eden <yamakuzure@gmx.net> | 2017-03-14 10:18:46 +0100 |
commit | 5db0e7adf018c82dd63cd21d31dd313dff5561af (patch) | |
tree | 93cc7298b8dfab71966ded0470bf11fbcffe1c29 /src/basic/process-util.c | |
parent | 390fb58fd380304b6a3c185ee076a8dbc87a07fe (diff) |
Prep v224: Major cleanup of unneeded functions and some source files.
Diffstat (limited to 'src/basic/process-util.c')
-rw-r--r-- | src/basic/process-util.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/basic/process-util.c b/src/basic/process-util.c index 9e7ddca91..b05591eb8 100644 --- a/src/basic/process-util.c +++ b/src/basic/process-util.c @@ -243,6 +243,8 @@ int get_process_exe(pid_t pid, char **name) { return 0; } +/// UNNEEDED by elogind +#if 0 static int get_process_id(pid_t pid, const char *field, uid_t *uid) { _cleanup_fclose_ FILE *f = NULL; char line[LINE_MAX]; @@ -281,8 +283,6 @@ int get_process_uid(pid_t pid, uid_t *uid) { return get_process_id(pid, "Uid:", uid); } -/// UNNEEDED by elogind -#if 0 int get_process_gid(pid_t pid, gid_t *gid) { assert_cc(sizeof(uid_t) == sizeof(gid_t)); return get_process_id(pid, "Gid:", gid); @@ -452,6 +452,8 @@ int wait_for_terminate_and_warn(const char *name, pid_t pid, bool check_exit_cod return -EPROTO; } +/// UNNEEDED by elogind +#if 0 int kill_and_sigcont(pid_t pid, int sig) { int r; @@ -462,6 +464,7 @@ int kill_and_sigcont(pid_t pid, int sig) { return r; } +#endif // 0 int getenv_for_pid(pid_t pid, const char *field, char **_value) { _cleanup_fclose_ FILE *f = NULL; |