]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
service: continue to use the overriden timeout when forking off again
authorLennart Poettering <lennart@poettering.net>
Wed, 24 Oct 2018 17:03:41 +0000 (19:03 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 26 Oct 2018 11:00:04 +0000 (13:00 +0200)
Let's make sure we always use the right watchdog timeout: when a service
has overwritten it, then stick to it, also for follow-up processes of
the same service.

src/core/service.c

index cd33e218b64647ae669a4004a8a20e588775f1c8..2e8ef7d1ab518e4ddd95741016131d2a3a73e32e 100644 (file)
@@ -1539,7 +1539,7 @@ static int service_spawn(
         exec_params.fd_names = fd_names;
         exec_params.n_socket_fds = n_socket_fds;
         exec_params.n_storage_fds = n_storage_fds;
-        exec_params.watchdog_usec = s->watchdog_usec;
+        exec_params.watchdog_usec = service_get_watchdog_usec(s);
         exec_params.selinux_context_net = s->socket_fd_selinux_context_net;
         if (s->type == SERVICE_IDLE)
                 exec_params.idle_pipe = UNIT(s)->manager->idle_pipe;