[Qa-jenkins-scm] [jenkins.debian.net] 01/01: revert 24deda5a and related commits

Holger Levsen holger at moszumanska.debian.org
Thu Mar 17 16:48:31 UTC 2016


This is an automated email from the git hooks/post-receive script.

holger pushed a commit to branch master
in repository jenkins.debian.net.

commit 43f606f23d621b6d3e222dc7c5183b611ab10174
Author: Holger Levsen <holger at layer-acht.org>
Date:   Thu Mar 17 12:48:05 2016 -0400

    revert 24deda5a and related commits
---
 TODO                    |  1 -
 bin/common-functions.sh |  3 +--
 bin/setsid.py           | 17 -----------------
 3 files changed, 1 insertion(+), 20 deletions(-)

diff --git a/TODO b/TODO
index a40e045..d242efe 100644
--- a/TODO
+++ b/TODO
@@ -41,7 +41,6 @@ Most jobs have been converted, a few are left to do:
 
 === To be done once jenkins.d.n runs jessie
 
-* replace with bin/setsid.py workaround with setsid from the util-linux package from jessie
 * bin/g-i-installation: use lvcreate without --virtualsize
 * check if the sudo workaround in bin/g-i-installation is still needed: 'guestmount -o uid=$(id -u) -o gid=$(id -g)' would be nicer, but it doesnt work: as root, the files seem to belong to jenkins, but as jenkins they cannot be accessed.
 
diff --git a/bin/common-functions.sh b/bin/common-functions.sh
index b74f7ec..3ce8bcb 100755
--- a/bin/common-functions.sh
+++ b/bin/common-functions.sh
@@ -43,8 +43,7 @@ if [ "${0:0:5}" != "/tmp/" ] ; then
 	echo "$(date -u) - start running \"$0\" (md5sum $(md5sum $0|cut -d ' ' -f1)) as \"$TTT\" on $(hostname)."
 	echo
 	# this is the "hack": call ourself as a copy in /tmp again
-	# (setsid is not related to this hack. see commit log for 24deda5a8 it.)
-	/srv/jenkins/bin/setsid.py $TTT "$@"
+	$TTT "$@"
 	exit $?
 	# cleanup is done automatically via trap
 else
diff --git a/bin/setsid.py b/bin/setsid.py
deleted file mode 100755
index 9771c67..0000000
--- a/bin/setsid.py
+++ /dev/null
@@ -1,17 +0,0 @@
-#!/usr/bin/python
-"""backport of util-linux' setsid -w to Debian wheezy"""
-# replace with setsid from the util-linux package from jessie (stable) or wheezy-bpo
-
-import os
-import sys
-
-if __name__ == "__main__":
-    assert len(sys.argv) > 1
-    pid = os.fork()
-    if pid == 0:
-        os.setsid()
-        os.execvp(sys.argv[1], sys.argv[1:])
-    else:
-        cpid, status = os.wait()
-        assert cpid == pid
-        sys.exit(os.WEXITSTATUS(status))

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/qa/jenkins.debian.net.git



More information about the Qa-jenkins-scm mailing list