This patch fixes SLiM so it really waits for the X server to be ready before attempting to connect to it. Indeed, the X server notices that its parent process has a handler for SIGUSR1, and consequently sends it SIGUSR1 when it's ready to accept connections. The problem was that SLiM doesn't pay attention to SIGUSR1. So in practice, if X starts slowly, then SLiM gets ECONNREFUSED a couple of time on /tmp/.X11-unix/X0, then goes on trying to connect to localhost:6000, where nobody answers; eventually, it times out and tries again on /tmp/.X11-unix/X0, and finally it shows up on the screen. Patch by L. Courtès. --- slim-1.3.6/app.cpp 2014-02-05 15:27:20.000000000 +0100 +++ slim-1.3.6/app.cpp 2014-02-09 22:42:04.000000000 +0100 @@ -119,7 +119,9 @@ void CatchSignal(int sig) { exit(ERR_EXIT); } +static volatile int got_sigusr1 = 0; void User1Signal(int sig) { + got_sigusr1 = 1; signal(sig, User1Signal); } @@ -884,6 +886,7 @@ int App::WaitForServer() { int ncycles = 120; int cycles; + while (!got_sigusr1); for(cycles = 0; cycles < ncycles; cycles++) { if((Dpy = XOpenDisplay(DisplayName))) { XSetIOErrorHandler(xioerror); 4ae415c3'>refslogtreecommitdiff
path: root/gnu/packages/gnucash.scm
AgeCommit message (Expand)Author
2018-04-13gnu: gnucash: Update to 3.0....Ricardo Wurmus
2018-04-13gnu: aqbanking: Update to 5.7.8....Ricardo Wurmus
2018-04-13gnu: gwenhywfar: Update to 4.20.0....Ricardo Wurmus
2018-01-09gnu: gnucash: Update to 2.6.19....Kei Kebreau
2017-11-15gnu: gnucash: Use HTTPS for www.gnucash.org....Tobias Geerinckx-Rice
2017-11-15gnu: gnucash: Update to 2.6.18....Tobias Geerinckx-Rice
2017-10-13gnu: Add GnuCash documentation....Chris Marusich
2017-08-06gnu: gnucash: Update to 2.6.17....Vasile Dumitrascu
2017-04-10gnu: gnucash: Update to 2.6.16....Leo Famulari
2017-01-17gnu: gnucash: Update to 2.6.15....Ricardo Wurmus
2017-01-13gnu: aqbanking: Update source hash....John Darrington
2017-01-09gnu: Update aqbanking to version 5.6.12....John Darrington
2017-01-09gnu: Simplify the downloads from http://www.aquamaniac.de...John Darrington
2016-10-05gnu: gnucash: Update to 2.6.14....Efraim Flashner