瀏覽代碼

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 年之前
父節點
當前提交
0bad131f9e
共有 1 個文件被更改,包括 1 次插入7 次删除
  1. 1 7
      recipes-support/swupdate/swupdate/swupdate

+ 1 - 7
recipes-support/swupdate/swupdate/swupdate

@@ -90,13 +90,7 @@ do_stop() {
 		;;
 		;;
 	esac
 	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
 }
 }
 
 
 #
 #