summaryrefslogtreecommitdiffstats
path: root/bin/setsid
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2009-07-30 22:08:40 +0000
committerZac Medico <zmedico@gentoo.org>2009-07-30 22:08:40 +0000
commitaeffcb7ff1f3450f277bfed4f654dca266927ad9 (patch)
treebe6b56c2520c6f2d14b34fa6c855cf9d085c7c8a /bin/setsid
parent4c24eec1f0600df3154c8d4fac0334fa73d8a504 (diff)
downloadportage-aeffcb7ff1f3450f277bfed4f654dca266927ad9.tar.gz
portage-aeffcb7ff1f3450f277bfed4f654dca266927ad9.tar.bz2
portage-aeffcb7ff1f3450f277bfed4f654dca266927ad9.zip
Add a python-based setsid script for use with USERLAND=BSD.
svn path=/main/trunk/; revision=13863
Diffstat (limited to 'bin/setsid')
-rwxr-xr-xbin/setsid10
1 files changed, 10 insertions, 0 deletions
diff --git a/bin/setsid b/bin/setsid
new file mode 100755
index 000000000..1be1e55c2
--- /dev/null
+++ b/bin/setsid
@@ -0,0 +1,10 @@
+#!/usr/bin/python -O
+# Copyright 2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+import os
+import sys
+
+os.setsid()
+os.execl(sys.argv[1], *sys.argv[1:])