mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-15 23:24:12 +03:00
small fixes: make get_process_state() static and fix typo
This commit is contained in:
parent
0f20dde52e
commit
0a51b45ce4
@ -44,7 +44,7 @@
|
||||
#include "terminal-util.h"
|
||||
#include "user-util.h"
|
||||
|
||||
int get_process_state(pid_t pid) {
|
||||
static int get_process_state(pid_t pid) {
|
||||
const char *p;
|
||||
char state;
|
||||
int r;
|
||||
|
@ -31,7 +31,6 @@
|
||||
_r_; \
|
||||
})
|
||||
|
||||
int get_process_state(pid_t pid);
|
||||
int get_process_comm(pid_t pid, char **name);
|
||||
int get_process_cmdline(pid_t pid, size_t max_length, bool comm_fallback, char **line);
|
||||
int get_process_exe(pid_t pid, char **name);
|
||||
|
@ -2472,7 +2472,7 @@ static int manager_dispatch_sigchld(sd_event_source *source, void *userdata) {
|
||||
assert(source);
|
||||
assert(m);
|
||||
|
||||
/* First we call waitd() for a PID and do not reap the zombie. That way we can still access /proc/$PID for it
|
||||
/* First we call waitid() for a PID and do not reap the zombie. That way we can still access /proc/$PID for it
|
||||
* while it is a zombie. */
|
||||
|
||||
if (waitid(P_ALL, 0, &si, WEXITED|WNOHANG|WNOWAIT) < 0) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user