summaryrefslogtreecommitdiff
path: root/app-misc/rogentoslive-tools/files/1.0/livespawn
diff options
context:
space:
mode:
Diffstat (limited to 'app-misc/rogentoslive-tools/files/1.0/livespawn')
-rw-r--r--app-misc/rogentoslive-tools/files/1.0/livespawn10
1 files changed, 10 insertions, 0 deletions
diff --git a/app-misc/rogentoslive-tools/files/1.0/livespawn b/app-misc/rogentoslive-tools/files/1.0/livespawn
new file mode 100644
index 00000000..44d7257e
--- /dev/null
+++ b/app-misc/rogentoslive-tools/files/1.0/livespawn
@@ -0,0 +1,10 @@
+#!/usr/bin/python
+import sys, os, subprocess
+args = sys.argv[1:]
+if not args: raise SystemExit(1)
+
+pid = os.fork()
+if pid == 0:
+ p = subprocess.Popen(args)
+ rc = p.wait()
+ raise SystemExit(rc)