Ver código fonte

Return 0 from SystemV script

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>
Stefano Babic 2 anos atrás
pai
commit
7367b095b9
1 arquivos alterados com 1 adições e 7 exclusões
  1. 1 7
      recipes-support/swupdate/swupdate/swupdate

+ 1 - 7
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
 }
 
 #