1 diff -ur slim-1.3.1.orig/app.cpp slim-1.3.1/app.cpp
2 --- slim-1.3.1.orig/app.cpp 2008-09-26 02:54:15.000000000 +0200
3 +++ slim-1.3.1/app.cpp 2008-11-21 20:38:48.000000000 +0100
5 signal(SIGALRM, AlarmSignal);
10 if (!force_nodaemon && cfg->getOption("daemon") == "yes") {
16 - if (daemon(0, 1) == -1) {
17 + if (daemon(0, 0) == -1) {
18 cerr << APPNAME << ": " << strerror(errno) << endl;
26 + if (daemonmode) UpdatePid();