diff options
Diffstat (limited to 'x11-misc/slim/files/14509-fix-keyboard-in-tty-from-which-slim-is-lauched.patch')
-rw-r--r-- | x11-misc/slim/files/14509-fix-keyboard-in-tty-from-which-slim-is-lauched.patch | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/x11-misc/slim/files/14509-fix-keyboard-in-tty-from-which-slim-is-lauched.patch b/x11-misc/slim/files/14509-fix-keyboard-in-tty-from-which-slim-is-lauched.patch new file mode 100644 index 000000000000..c9d8d0a5aed1 --- /dev/null +++ b/x11-misc/slim/files/14509-fix-keyboard-in-tty-from-which-slim-is-lauched.patch @@ -0,0 +1,29 @@ +--- app.cpp.orig 2009-01-13 11:30:36.000000000 +0900 ++++ 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); |