process-util: move more process related calls to process-util.[ch]

This commit is contained in:
Lennart Poettering
2015-10-26 01:24:39 +01:00
parent 2583fbea8e
commit 4d0d3d41d2
4 changed files with 13 additions and 14 deletions
-10
View File
@@ -4016,16 +4016,6 @@ int read_attr_path(const char *p, unsigned *ret) {
return read_attr_fd(fd, ret);
}
void sigkill_wait(pid_t *pid) {
if (!pid)
return;
if (*pid <= 1)
return;
if (kill(*pid, SIGKILL) > 0)
(void) wait_for_terminate(*pid, NULL);
}
int syslog_parse_priority(const char **p, int *priority, bool with_facility) {
int a = 0, b = 0, c = 0;
int k;