1 Index: lxdm-svn/src/lxdm.c
2 ===================================================================
3 --- lxdm-svn/src/lxdm.c (revision 2334)
4 +++ lxdm-svn/src/lxdm.c (working copy)
12 + log=fopen("/var/log/lxdm.log","w");
18 void log_print(char *fmt, ...)
26 + log=freopen("/var/log/lxdm.log","a",stdout);
27 + setvbuf(stdout, NULL, _IOLBF, BUFSIZ);
28 + freopen("/var/log/lxdm.log","a",stderr);
29 + setvbuf(stderr, NULL, _IONBF, BUFSIZ);
31 vfprintf(log, fmt, ap);
34 if( !getenv("DISPLAY") )
37 + log_print("%s\n","start X");
40 arg = g_key_file_get_string(config, "server", "arg", 0);
44 setpgid( 0, getpid() );
45 + // required to catch output
46 + log_print("%s\n", "lxdm forked");
47 execvp(args[0], args);
57 for( tmp = 0; tmp < 200; tmp++ )