diff options
author | tnut <thierryn1 at hispeed dot ch> | 2010-06-30 09:11:31 +0200 |
---|---|---|
committer | tnut <thierryn1 at hispeed dot ch> | 2010-06-30 09:11:31 +0200 |
commit | 6b34c7c0613393049edcb782407b5293491796cf (patch) | |
tree | 831d3a6d1f5921fe3b9bbde7be12d12ac269c488 /test/slim/slim-tty-slowness.patch | |
parent | b863c93fc8329443e1cff089f22e9755e7df90d6 (diff) | |
download | nutyx-extra-6b34c7c0613393049edcb782407b5293491796cf.tar.gz nutyx-extra-6b34c7c0613393049edcb782407b5293491796cf.tar.bz2 nutyx-extra-6b34c7c0613393049edcb782407b5293491796cf.tar.xz nutyx-extra-6b34c7c0613393049edcb782407b5293491796cf.zip |
slim dans test
Diffstat (limited to 'test/slim/slim-tty-slowness.patch')
-rw-r--r-- | test/slim/slim-tty-slowness.patch | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/test/slim/slim-tty-slowness.patch b/test/slim/slim-tty-slowness.patch new file mode 100644 index 000000000..1f1f2e166 --- /dev/null +++ b/test/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); |