diff options
Diffstat (limited to 'livespawn')
-rw-r--r-- | livespawn | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/livespawn b/livespawn new file mode 100644 index 0000000..44d7257 --- /dev/null +++ b/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) |