diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-04-08 04:05:56 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-04-08 04:05:56 +0200 |
commit | 16f6025e7004fbc18984550e35d379b03a8045af (patch) | |
tree | 354228561922439a9717150524dc74d98b491ce0 /service.c | |
parent | 4f320e4d73220c192714896ece07e56682ac1462 (diff) |
service: when reading pid file make sure to watch the pid read
Diffstat (limited to 'service.c')
-rw-r--r-- | service.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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; |