Save process exit status to svc_t

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson committed 2020-02-05 07:23:06 +01:00
1 parent 225510a270
commit c3eca9fe8f
4 files changed
+11 -6

No files matched your search

+1
View File
@@ -98,6 +98,7 @@ typedef struct svc {
pid_t pid;
char pidfile[256];
long start_time; /* Start time, as seconds since boot, from sysinfo() */
int status; /* From waitpid() when process is collected */
const svc_state_t state; /* Paused, Reloading, Restart, Running, ... */
svc_type_t type; /* Service, run, task, inetd, ... */
int protect; /* Services like dbus-daemon & udev by Finit */