From 16f6025e7004fbc18984550e35d379b03a8045af Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 8 Apr 2010 04:05:56 +0200 Subject: [PATCH] service: when reading pid file make sure to watch the pid read --- service.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/service.c b/service.c index 832c7b32632..c914ecace57 100644 --- a/service.c +++ b/service.c @@ -845,6 +845,10 @@ static int service_load_pid_file(Service *s) { return -ESRCH; } + if ((r = unit_watch_pid(UNIT(s), (pid_t) p)) < 0) + /* FIXME: we need to do something here */ + return r; + s->main_pid = (pid_t) p; s->main_pid_known = true; -- 2.39.2