summaryrefslogtreecommitdiffstats
path: root/bin/setsid
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2009-08-03 20:13:17 +0000
committerZac Medico <zmedico@gentoo.org>2009-08-03 20:13:17 +0000
commit38a4cf4b0821f0d880d8aeb6adf2c8c55af63e20 (patch)
tree6d2f34bc8cf07f518e50b45f77127634c501e803 /bin/setsid
parent67c671679e4d02d2f53b149a2d57d0e3bccb6028 (diff)
downloadportage-38a4cf4b0821f0d880d8aeb6adf2c8c55af63e20.tar.gz
portage-38a4cf4b0821f0d880d8aeb6adf2c8c55af63e20.tar.bz2
portage-38a4cf4b0821f0d880d8aeb6adf2c8c55af63e20.zip
Remove the code from bug #278895 since we're going to need a daemon process
in the ebuild's login session in order to pass signals from the controlling terminal to the detached session. A simple fifo-based approach in ebuild.sh does not seem to work since bash's read builtin occasionally loses the fifo data when it's 'Interrupted system call'. Maybe a python script will work better for the session leader/daemon. NOTE: The daemon will also be useful for implementing a fifo-based die helper (to replace the current signal- based approach). svn path=/main/trunk/; revision=13879
Diffstat (limited to 'bin/setsid')
-rwxr-xr-xbin/setsid10
1 files changed, 0 insertions, 10 deletions
diff --git a/bin/setsid b/bin/setsid
deleted file mode 100755
index 1be1e55c2..000000000
--- a/bin/setsid
+++ /dev/null
@@ -1,10 +0,0 @@
-#!/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:])