diff options
author | David Oberhollenzer <goliath@infraroot.at> | 2020-05-14 01:41:30 +0200 |
---|---|---|
committer | David Oberhollenzer <goliath@infraroot.at> | 2020-05-14 01:41:30 +0200 |
commit | 8ce7d986283f5ef63377a0a447850c970c5cc493 (patch) | |
tree | 2a8bcf66f3d42104dfdaf1e71e9a11710245a936 /initd | |
parent | 32c3ad35b4985718e2b92c979292f6b0f6816587 (diff) |
Move service rt data to libinit, try to improve memory packing
Signed-off-by: David Oberhollenzer <goliath@infraroot.at>
Diffstat (limited to 'initd')
-rw-r--r-- | initd/init.h | 18 |
1 files changed, 0 insertions, 18 deletions
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 **********/ /* |