diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/include/service.h | 1 | ||||
-rw-r--r-- | lib/init/rdsvc.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/lib/include/service.h b/lib/include/service.h index 85b82c5..1ff5204 100644 --- a/lib/include/service.h +++ b/lib/include/service.h @@ -68,6 +68,7 @@ typedef struct service_t { pid_t pid; int status; /* process exit status */ + int id; /* service ID used by initd */ char name[]; /* canonical service name */ } service_t; diff --git a/lib/init/rdsvc.c b/lib/init/rdsvc.c index 7ce68e3..0e5bc99 100644 --- a/lib/init/rdsvc.c +++ b/lib/init/rdsvc.c @@ -261,6 +261,7 @@ service_t *rdsvc(int dirfd, const char *filename, int flags) } memcpy(svc->name, filename, nlen); + svc->id = -1; if (rdcfg(svc, &rd, svc_params, ARRAY_SIZE(svc_params), flags)) goto fail; |