setvbuf for easier debugging

SVN revision: 12576
This commit is contained in:
Carsten Haitzler 2004-12-24 04:44:05 +00:00
parent 2d5aa1d0b7
commit 3d71d871c8
1 changed files with 4 additions and 1 deletions

View File

@ -63,7 +63,10 @@ main(int argc, char **argv)
int nowelcome = 0;
int after_restart = 0;
char buf[1024];
/* for debugging by redirecting stdout of e to a log file to tail */
setvbuf(stdout, NULL, _IONBF, 0);
if (getenv("NOSPLASH")) nosplash = 1;
if (getenv("NOSTARTUP")) nostartup = 1;
if (getenv("NOWELCOME")) nowelcome = 1;