Bug#779608: xvfb: cleanup on signal exits as well
Package: xvfb
Version: 2:1.16.4-1
Severity: normal
Hi,
In xvfb-run(1), please clean up the Xvfb server on exits caused by signals too.
Easy way:
---- cut here ----
--- /usr/bin/xvfb-run 2015-02-11 01:35:06.000000000 +0100
+++ /usr/bin/xvfb-run 2015-03-03 01:39:03.839885585 +0100
@@ -140,7 +140,7 @@
fi
# tidy up after ourselves
-trap clean_up EXIT
+trap clean_up EXIT INT QUIT TERM
# If the user did not specify an X authorization file to use, set up a temporary
# directory to house one.
---- cut here ----
More flexible way is to add a flag (--cleanup-on-signal) so the user can specific which signals they want to clean up on.
-- System Information:
Debian Release: 8.0
APT prefers testing
APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 3.16.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.utf8, LC_CTYPE=en_GB.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages xvfb depends on:
ii libaudit1 1:2.4-1+b1
ii libc6 2.19-13
ii libgcrypt20 1.6.2-4+b1
ii libgl1-mesa-glx [libgl1] 10.3.2-1
ii libpixman-1-0 0.32.6-3
ii libselinux1 2.3-2
ii libxau6 1:1.0.8-1
ii libxdmcp6 1:1.1.1-1+b1
ii libxfont1 1:1.4.99.901-1+b3
ii libxshmfence1 1.1-4
ii xserver-common 2:1.16.4-1
Versions of packages xvfb recommends:
ii xauth 1:1.0.9-1
xvfb suggests no packages.
-- no debconf information
Reply to: