updated on Sun Jan 15 08:01:04 UTC 2012
[aur-mirror.git] / slim-unicode / tty-slowness.patch
blobc590fbed80c18747907b0f13c53fae5f53178879
1 diff -aur slim-1.3.2.a/app.cpp slim-1.3.2.b/app.cpp
2 --- slim-1.3.2.a/app.cpp 2010-08-21 15:10:13.702755711 +0200
3 +++ slim-1.3.2.b/app.cpp 2010-08-21 15:10:48.579631179 +0200
4 @@ -280,21 +280,22 @@
5 signal(SIGALRM, AlarmSignal);
7 #ifndef XNEST_DEBUG
8 - OpenLog();
9 -
10 if (!force_nodaemon && cfg->getOption("daemon") == "yes") {
11 daemonmode = true;
14 // Daemonize
15 if (daemonmode) {
16 - if (daemon(0, 1) == -1) {
17 + if (daemon(0, 0) == -1) {
18 cerr << APPNAME << ": " << strerror(errno) << endl;
19 exit(ERR_EXIT);
21 - UpdatePid();
24 + OpenLog();
26 + if (daemonmode) UpdatePid();
28 CreateServerAuth();
29 StartServer();
30 alarm(2);