]> Pileus Git - mkinit/blobdiff - src/respawn
Update mkinit
[mkinit] / src / respawn
index 9917c4464fc522de3ab59a505c8b4a766d6361d4..ba2b4ca32ef7ad799e8f074cca1b9169c4c622e3 100755 (executable)
@@ -1,9 +1,8 @@
-#!/bin/sh
+#!/opt/plan9/bin/rc
 
 # Copyright (C) 2009 Andy Spencer
 # See ../COPYING for terms
 
-while (true); do
-       "$@"
-       echo Process $! died, waiting 1 second to respawn
-done
+{ while($*){
+       sleep 1
+} } <[0=] >[1=] >[2=] &