Skip to content

Commit 6e92627

Browse files
committed
run-ubuntu-chroot: Clean up stray X.org harder
More recent X.org versions spawn a subprocess which isn't SIGTERMable and does not get cleaned up with the master process. Kill it to avoid a busy /dev in the chroot, so that the cleanup works properly.
1 parent a863ef9 commit 6e92627

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/run-ubuntu-chroot

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ apt-get install -y pkg-config dh-autoreconf valac libglib2.0-dev libudev-dev lib
5454
# run build and tests as user
5555
chown -R buildd:buildd /build
5656
su - buildd <<EOU
57+
# avoid forever-hanging X.org subprocess
58+
trap "pkill -e -kill Xorg || true" EXIT INT QUIT PIPE
5759
set -ex
5860
cd /build/src
5961
./autogen.sh --prefix=/usr
@@ -66,6 +68,9 @@ EOU
6668
make -C /build/src install
6769
ldconfig
6870
su - buildd <<EOU
71+
# avoid forever-hanging X.org subprocess
72+
trap "pkill -e -kill Xorg || true" EXIT INT QUIT PIPE
73+
set -ex
6974
cd /build/src
7075
make check-installed
7176
EOU

0 commit comments

Comments
 (0)