Fix kdm logfile growing rapidly under certain conditions

(cherry picked from commit 696fe6318f)
v3.5.13-sru
Timothy Pearson 13 years ago committed by Slávek Banko
parent 497b2f0911
commit a7dff39a3f

@ -196,10 +196,11 @@ kg_main( const char *argv0 )
if (trinity_desktop_lock_use_sak) {
tsak = new KProcess;
*tsak << TQCString( argv0, strrchr( argv0, '/' ) - argv0 + 2 ) + "tsak";
tsak->start(KProcess::Block);
tsak->start(KProcess::Block, KProcess::AllOutput);
}
if (tsak) {
tsak->closeStdin();
tsak->closeStdout();
tsak->detach();
delete tsak;
}

@ -357,6 +357,9 @@ int main (int argc, char *argv[])
int current_keyboard;
bool can_proceed;
// Ignore SIGPIPE
signal(SIGPIPE, SIG_IGN);
for (i=0; i<MAX_KEYBOARDS; i++) {
child_pids[i] = 0;
}

Loading…
Cancel
Save