Fix tdm logfile growing rapidly under certain conditions

pull/2/head
Timothy Pearson 12 years ago
parent 5486d8e2a8
commit 696fe6318f

@ -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