diff mbox series

[meta-swupdate] Return 0 from SystemV script

Message ID 20230503102218.785289-1-sbabic@denx.de
State Accepted
Headers show
Series [meta-swupdate] Return 0 from SystemV script | expand

Commit Message

Stefano Babic May 3, 2023, 10:22 a.m. UTC
Using SystemV, the stop function does not exit with 0 after SWUpdate is
termintated. This is due indirectly to commit f8372f31. Force the status
to zero because after killing the processes, there are not other
resources to be freed.

Signed-off-by: Stefano Babic <sbabic@denx.de>
---
 recipes-support/swupdate/swupdate/swupdate | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)
diff mbox series

Patch

diff --git a/recipes-support/swupdate/swupdate/swupdate b/recipes-support/swupdate/swupdate/swupdate
index 9e6a8bf..06b287d 100644
--- a/recipes-support/swupdate/swupdate/swupdate
+++ b/recipes-support/swupdate/swupdate/swupdate
@@ -90,13 +90,7 @@  do_stop() {
 		;;
 	esac
 
-	# Wait for children to finish too if this is a daemon that forks
-	# and if the daemon is only ever run from this initscript.
-	# If the above conditions are not satisfied then add some other code
-	# that waits for the process to drop all resources that could be
-	# needed by services started subsequently.  A last resort is to
-	# sleep for some time.
-	return $status
+	return 0
 }
 
 #