From: David Ward Date: Sun, 29 Apr 2012 13:35:40 +0000 (-0400) Subject: service: actually delay auto-restart if another job is pending X-Git-Tag: v183~51 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=feae8adb848e26110b28a06d1244e02f36cdf382;p=systemd service: actually delay auto-restart if another job is pending https://bugs.freedesktop.org/show_bug.cgi?id=45511 --- diff --git a/src/core/service.c b/src/core/service.c index 2bd29ff7..4f037546 100644 --- a/src/core/service.c +++ b/src/core/service.c @@ -2232,6 +2232,8 @@ static void service_enter_restart(Service *s) { if ((r = unit_watch_timer(UNIT(s), s->restart_usec, &s->timer_watch)) < 0) goto fail; + + return; } /* Any units that are bound to this service must also be