Julián, On Friday 20 October 2006 12:00, Julián Rodríguez Bajo wrote:
El Viernes, 20 de Octubre de 2006 20:49, Boyan Tabakov escribió:
On 20.10.2006 21:43, Julián Rodríguez Bajo wrote:
Hi friends.
I have noticed that file .xsession-errors in my home directory grows and grows out of control. Since my KDE sessions last for many days or even weeks, I am forced to restart my machine from time to time. I have tried running kdebugdialog and disable all items, but it has no effect.
Regards.
Hi, If you don't care about the contents of that log, you can simply flush it from time to time - no need to restart. Just type:
$ cat /dev/null > ~/.xsession-errors
Thanks for your reply Boyan, but after exec that command, next time any process writes to the file the file size goes back to the previous file size.
This indicates that at least one of the process(es) writing to that file has not opened it in O_APPEND mode (or switched to append mode after opening it). This is surprising, since it's a bit of a rookie programming mistake. Sadly, it only takes one such erroneously written program to mess things up in this way, since the programs that do properly write with O_APPEND will, as the name suggest, always have their contributions to the file placed at the very end, wherever that happens to be at the moment their write request is received by the kernel. Furthermore, the kernel guarantees that O_APPEND-mode writes will not interfere with each other. In contrast, programs that seek to the end and then start writing may well overwrite the data of concurrent writers. Randall Schulz