Skip to content

Commit 34b3f62

Browse files
committed
service: continue to use the overriden timeout when forking off again
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.
1 parent 95d0d8e commit 34b3f62

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/service.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1539,7 +1539,7 @@ static int service_spawn(
15391539
exec_params.fd_names = fd_names;
15401540
exec_params.n_socket_fds = n_socket_fds;
15411541
exec_params.n_storage_fds = n_storage_fds;
1542-
exec_params.watchdog_usec = s->watchdog_usec;
1542+
exec_params.watchdog_usec = service_get_watchdog_usec(s);
15431543
exec_params.selinux_context_net = s->socket_fd_selinux_context_net;
15441544
if (s->type == SERVICE_IDLE)
15451545
exec_params.idle_pipe = UNIT(s)->manager->idle_pipe;

0 commit comments

Comments
 (0)