use buffered output

This commit is contained in:
Neale Pickett 2012-02-15 16:34:21 -07:00
parent 18e2662b50
commit 32714eb6c4
1 changed files with 5 additions and 0 deletions

View File

@ -125,6 +125,9 @@ char *remote_ip;
char *remote_port;
char *remote_ident;
#define BUFFER_OUTSIZE 8192
char stdout_buf[BUFFER_OUTSIZE];
static void
sanitize(char *ua)
{ /* replace strings with underscores for *
@ -1427,6 +1430,8 @@ main(int argc, char *argv[], const char *const *envp)
}
}
setbuffer(stdout, stdout_buf, sizeof stdout_buf);
signal(SIGPIPE, SIG_IGN);
get_ucspi_env();