From 2d0fdaaafc5d2925b8ef7708a950f6b599892b54 Mon Sep 17 00:00:00 2001 From: Wei Wang Date: Thu, 2 Feb 2017 10:52:39 -0800 Subject: init: clean up exec command Add wait time log for exec service execution time Fix memory leak when exec service failed to start Test: on marlin Bug: 34518530 Change-Id: I01736bd9b1429414f3dc91dd5d02d88a681f0985 --- init/service.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'init/service.cpp') diff --git a/init/service.cpp b/init/service.cpp index 0f7f62fe9..e186f27a8 100644 --- a/init/service.cpp +++ b/init/service.cpp @@ -997,7 +997,7 @@ bool ServiceManager::ReapOneProcess() { } if (svc->Reap()) { - waiting_for_exec = false; + stop_waiting_for_exec(); RemoveService(*svc); } -- cgit v1.2.3