mirror of https://github.com/nealey/eris.git
use buffered output
This commit is contained in:
parent
18e2662b50
commit
32714eb6c4
5
fnord.c
5
fnord.c
|
@ -125,6 +125,9 @@ char *remote_ip;
|
||||||
char *remote_port;
|
char *remote_port;
|
||||||
char *remote_ident;
|
char *remote_ident;
|
||||||
|
|
||||||
|
#define BUFFER_OUTSIZE 8192
|
||||||
|
char stdout_buf[BUFFER_OUTSIZE];
|
||||||
|
|
||||||
static void
|
static void
|
||||||
sanitize(char *ua)
|
sanitize(char *ua)
|
||||||
{ /* replace strings with underscores for *
|
{ /* 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);
|
signal(SIGPIPE, SIG_IGN);
|
||||||
get_ucspi_env();
|
get_ucspi_env();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue