瀏覽代碼

Run CMD in the foreground process group

Signed-off-by: Laurent Bercot <[email protected]>
Laurent Bercot 3 年之前
父節點
當前提交
9f8a9ae7df

+ 1 - 4
layout/rootfs-overlay/package/admin/s6-overlay-@VERSION@/etc/s6-linux-init/skel/rc.init

@@ -32,10 +32,7 @@ fi
 if test "$#" -ne 0 ; then
   set +e
   arg0=`printcontenv S6_CMD_ARG0`
-  $arg0 "$@" &
-  pid=$!
-  echo "$pid" > /run/s6-linux-init-container-results/pid
-  wait "$pid"
+  $arg0 "$@"
   echo "$?" > /run/s6-linux-init-container-results/exitcode
   set -e
   exec /run/s6/basedir/bin/halt