From 0bfb0714305c87926d9be0cf216c42a0a9cf0be5 Mon Sep 17 00:00:00 2001 From: tnut Date: Thu, 29 Apr 2010 19:47:33 +0200 Subject: maj slim#1.3.1-4 --- extra/slim/slim-tty-slowness.patch | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 extra/slim/slim-tty-slowness.patch (limited to 'extra/slim/slim-tty-slowness.patch') diff --git a/extra/slim/slim-tty-slowness.patch b/extra/slim/slim-tty-slowness.patch new file mode 100644 index 000000000..1f1f2e166 --- /dev/null +++ b/extra/slim/slim-tty-slowness.patch @@ -0,0 +1,29 @@ +--- slim-1.3.1.orig/app.cpp 2009-01-13 11:30:36.000000000 +0900 ++++ slim-1.3.1/app.cpp 2009-01-13 11:32:27.000000000 +0900 +@@ -270,21 +270,22 @@ + signal(SIGALRM, AlarmSignal); + + #ifndef XNEST_DEBUG +- OpenLog(); +- + if (!force_nodaemon && cfg->getOption("daemon") == "yes") { + daemonmode = true; + } + + // Daemonize + if (daemonmode) { +- if (daemon(0, 1) == -1) { ++ if (daemon(0, 0) == -1) { + cerr << APPNAME << ": " << strerror(errno) << endl; + exit(ERR_EXIT); + } +- UpdatePid(); + } + ++ OpenLog(); ++ ++ if (daemonmode) UpdatePid(); ++ + CreateServerAuth(); + StartServer(); + alarm(2); -- cgit v1.2.3-70-g09d2