[devtools] fix bashism in xvfb-run.sh stable
authorJulien Cristau <julien.cristau@logilab.fr>
Wed, 04 Apr 2012 18:44:07 +0200
branchstable
changeset 8339 63348ead09fb
parent 8338 115e85c5073d
child 8341 af813e7d5daa
[devtools] fix bashism in xvfb-run.sh bash's trap builtin accepts SIGUSR1, whereas dash complains. So use USR1 instead.
devtools/data/xvfb-run.sh
--- a/devtools/data/xvfb-run.sh	Wed Apr 04 15:04:16 2012 +0200
+++ b/devtools/data/xvfb-run.sh	Wed Apr 04 18:44:07 2012 +0200
@@ -160,8 +160,8 @@
 EOF
     # handle SIGUSR1 so Xvfb knows to send a signal when it's ready to accept
     # connections
-    trap : SIGUSR1
-    (trap '' SIGUSR1; XAUTHORITY=$AUTHFILE exec Xvfb ":$SERVERNUM" $XVFBARGS $LISTENTCP >>"$ERRORFILE" 2>&1) &
+    trap : USR1
+    (trap '' USR1; XAUTHORITY=$AUTHFILE exec Xvfb ":$SERVERNUM" $XVFBARGS $LISTENTCP >>"$ERRORFILE" 2>&1) &
     XVFBPID=$!
 
     wait || :