Move run/tasks to stopping state when they exit, like services

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson
2018-01-29 18:40:41 +01:00
parent 2b6f00f126
commit 29fe8cc73d
+1
View File
@@ -1087,6 +1087,7 @@ restart:
}
if (svc_is_runtask(svc)) {
svc_set_state(svc, SVC_STOPPING_STATE);
svc->once++;
break;
}