From 8ce7d986283f5ef63377a0a447850c970c5cc493 Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Thu, 14 May 2020 01:41:30 +0200 Subject: Move service rt data to libinit, try to improve memory packing Signed-off-by: David Oberhollenzer --- initd/init.h | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'initd') diff --git a/initd/init.h b/initd/init.h index deb6da9..3400ec0 100644 --- a/initd/init.h +++ b/initd/init.h @@ -28,24 +28,6 @@ #define ENVFILE ETCPATH "/initd.env" #define PROCFDDIR "/proc/self/fd" -/* service run time data */ - -enum { - STATE_OFF, - STATE_RUNNING, - STATE_QUEUED, - STATE_COMPLETED, - STATE_FAILED, -}; - -typedef struct { - service_t *svc; /* the underlying service description */ - int state; /* what STATE_* the service is currently in */ - int rspwn_count; /* services respawn counter */ - int status; /* if exited, process exit status */ - pid_t pid; /* if still running, the pid */ -} svc_run_data_t; - /********** runsvc.c **********/ /* -- cgit v1.2.3