1
0
mirror of https://github.com/systemd/systemd.git synced 2024-12-23 21:35:11 +03:00

service: when reading pid file make sure to watch the pid read

This commit is contained in:
Lennart Poettering 2010-04-08 04:05:56 +02:00
parent 4f320e4d73
commit 16f6025e70

View File

@ -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;