From aeffcb7ff1f3450f277bfed4f654dca266927ad9 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Thu, 30 Jul 2009 22:08:40 +0000 Subject: Add a python-based setsid script for use with USERLAND=BSD. svn path=/main/trunk/; revision=13863 --- bin/setsid | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 bin/setsid (limited to 'bin/setsid') 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:]) -- cgit v1.2.3-1-g7c22