server: Set stderr in line-buffered mode before doing anything else.

This commit is contained in:
Alexandre Julliard 2009-01-16 12:32:26 +01:00
parent 07f77c4148
commit 64e6ee5cd8
1 changed files with 1 additions and 1 deletions

View File

@ -126,6 +126,7 @@ static void sigterm_handler( int signum )
int main( int argc, char *argv[] ) int main( int argc, char *argv[] )
{ {
setvbuf( stderr, NULL, _IOLBF, 0 );
parse_args( argc, argv ); parse_args( argc, argv );
/* setup temporary handlers before the real signal initialization is done */ /* setup temporary handlers before the real signal initialization is done */
@ -138,7 +139,6 @@ int main( int argc, char *argv[] )
sock_init(); sock_init();
open_master_socket(); open_master_socket();
setvbuf( stderr, NULL, _IOLBF, 0 );
if (debug_level) fprintf( stderr, "wineserver: starting (pid=%ld)\n", (long) getpid() ); if (debug_level) fprintf( stderr, "wineserver: starting (pid=%ld)\n", (long) getpid() );
init_signals(); init_signals();