Changeset: 1f6ae91bfc58 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/1f6ae91bfc58
Modified Files:
        tools/mserver/mserver5.c
Branch: Sep2022
Log Message:

On Windows, _IOLBF does the same as _IOFBF, i.e. full buffering.


diffs (21 lines):

diff --git a/tools/mserver/mserver5.c b/tools/mserver/mserver5.c
--- a/tools/mserver/mserver5.c
+++ b/tools/mserver/mserver5.c
@@ -283,7 +283,6 @@ main(int argc, char **av)
 #endif
 {
        /* make sure stdout is line buffered, even when not to a terminal */
-       setvbuf(stdout, NULL, _IOLBF, BUFSIZ);
 #ifdef _MSC_VER
        char **av = malloc((argc + 1) * sizeof(char *));
        if (av == NULL) {
@@ -297,6 +296,9 @@ main(int argc, char **av)
                }
        }
        av[argc] = NULL;
+#else
+       /* on Windows, _IOLBF does the same as _IOFBF, i.e. full buffering */
+       setvbuf(stdout, NULL, _IOLBF, BUFSIZ);
 #endif
        char *prog = *av;
        opt *set = NULL;
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to