Branch: Tag:

2001-03-23

2001-03-23 01:05:42 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Make sure that stderr is unbuffered.

Rev: src/configure.in:1.507
Rev: src/main.c:1.117

5:   \*/   /**/   #include "global.h" - RCSID("$Id: main.c,v 1.116 2001/03/22 02:21:15 hubbe Exp $"); + RCSID("$Id: main.c,v 1.117 2001/03/23 01:05:42 grubba Exp $");   #include "fdlib.h"   #include "backend.h"   #include "module.h"
148:    extern char **environ;   #endif    +  /* Attempt to make sure stderr is unbuffered. */ + #ifdef HAVE_SETVBUF +  setvbuf(stderr, NULL, _IONBF, 0); + #else /* !HAVE_SETVBUF */ + #ifdef HAVE_SETBUF +  setbuf(stderr, NULL); + #endif /* HAVE_SETBUF */ + #endif /* HAVE_SETVBUF */ +    #ifdef TRY_USE_MMX    try_use_mmx=mmx_ok();   #endif