* Buffered output needs to be flushed in several places. Added calls to
[citadel.git] / citadel / control.c
index c145a5a930eeca087ede2c1cde86afdc1299d74b..86f907cde9aa3f0f65d811781f7d50a52a679065 100644 (file)
@@ -215,6 +215,7 @@ void cmd_conf(char *argbuf)
 
        else if (!strcasecmp(cmd, "SET")) {
                cprintf("%d Send configuration...\n", SEND_LISTING);
+               flush_output();
                a = 0;
                while (client_gets(buf), strcmp(buf, "000")) {
                        switch (a) {
@@ -403,6 +404,7 @@ void cmd_conf(char *argbuf)
        else if (!strcasecmp(cmd, "PUTSYS")) {
                extract(confname, argbuf, 1);
                cprintf("%d %s\n", SEND_LISTING, confname);
+               flush_output();
                confptr = CtdlReadMessageBody("000",
                                config.c_maxmsglen, NULL, 0);
                CtdlPutSysConfig(confname, confptr);