Changed buffer mode for stdout

This commit is contained in:
2021-01-07 22:11:27 +01:00
parent a73cbac7a1
commit c4eb6709cf
2 changed files with 3 additions and 5 deletions

View File

@ -156,10 +156,10 @@ int main(int argc, const char *argv[]) {
{.sin6_family = AF_INET6, .sin6_addr = IN6ADDR_ANY_INIT, .sin6_port = htons(443)}
};
/*if (setvbuf(stdout, NULL, _IONBF, 0) != 0) {
fprintf(stderr, ERR_STR "Unable to set stdout to unbuffered mode: %s" CLR_STR, strerror(errno));
if (setvbuf(stdout, NULL, _IOLBF, 0) != 0) {
fprintf(stderr, ERR_STR "Unable to set stdout to line-buffered mode: %s" CLR_STR, strerror(errno));
return 1;
}*/
}
printf("Necronda Web Server\n");
ret = config_init();