[systemd-devel] [PATCH] service: actually delay auto-restart if another job is pending

David Ward david.ward at ll.mit.edu
Mon Apr 30 14:57:22 PDT 2012


---
 src/core/service.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/core/service.c b/src/core/service.c
index 4358a94..e9fbd6d 100644
--- a/src/core/service.c
+++ b/src/core/service.c
@@ -2220,6 +2220,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
-- 
1.7.4.1



More information about the systemd-devel mailing list