]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
small fixes: make get_process_state() static and fix typo
authorTopi Miettinen <toiwoton@gmail.com>
Mon, 20 May 2019 11:37:03 +0000 (14:37 +0300)
committerLennart Poettering <lennart@poettering.net>
Mon, 20 May 2019 14:23:22 +0000 (16:23 +0200)
src/basic/process-util.c
src/basic/process-util.h
src/core/manager.c

index 3dc3534e1ab21556b2bc81918345ed93c3876ad5..052bce6645f396694cac5da55274d792c0547d1f 100644 (file)
@@ -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;
index 7e1d65a7bf1b3c52c9b7c8d3e982d72be127308d..83ba93d0d74aa3b45aa8558ce14bfe85dd025118 100644 (file)
@@ -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);
index b7848648bebfd430ed0c86c161937feff3200e1d..c11cb23aa9f2f0488c11ea95f1f63955d5c15ada 100644 (file)
@@ -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) {