* Remove calls to the broken flush_output() while I try to figure out what's
authorMichael Hampton <io_error@uncensored.citadel.org>
Sat, 11 Sep 2004 03:13:05 +0000 (03:13 +0000)
committerMichael Hampton <io_error@uncensored.citadel.org>
Sat, 11 Sep 2004 03:13:05 +0000 (03:13 +0000)
  wrong with it.  Replaced with unbuffer_output() which does work.

citadel/ChangeLog
citadel/citserver.c
citadel/control.c
citadel/room_ops.c
citadel/serv_bio.c
citadel/serv_chat.c
citadel/serv_network.c
citadel/serv_vandelay.c
citadel/serv_vcard.c

index 8cc10af22dedd7e6b3c06b248b8b2854b268b581..a7b802605d081e6e4c0470879abd9de7158836ec 100644 (file)
@@ -1,4 +1,8 @@
  $Log$
+ Revision 625.20  2004/09/11 03:13:04  error
+ * Remove calls to the broken flush_output() while I try to figure out what's
+   wrong with it.  Replaced with unbuffer_output() which does work.
+
  Revision 625.19  2004/09/10 02:54:26  ajc
  * Added flush_output() calls to IMAP modules.  (Do we need them?  Are we
    buffering IMAP output?  Should we?)
@@ -6073,4 +6077,3 @@ Sat Jul 11 00:20:48 EDT 1998 Nathan Bryant <bryant@cs.usm.maine.edu>
 
 Fri Jul 10 1998 Art Cancro <ajc@uncensored.citadel.org>
        * Initial CVS import
-
index 997ac389016fd75e35e3291565a4647a9efe09f0..041963b5af30e2af03f38837dea61eeebec15c33 100644 (file)
@@ -593,6 +593,8 @@ void cmd_emsg(char *mname)
        char *dirs[2];
        int a;
 
+       unbuffer_output();
+
        if (CtdlAccessCheck(ac_aide)) return;
 
        extract(buf,mname,0);
@@ -619,7 +621,6 @@ void cmd_emsg(char *mname)
                return;
        }
        cprintf("%d %s\n", SEND_LISTING, targ);
-       flush_output();
 
        while (client_gets(buf), strcmp(buf, "000")) {
                fprintf(mfp, "%s\n", buf);
index 86f907cde9aa3f0f65d811781f7d50a52a679065..93e5324d0e6b2dd60f58a34de23a57837d76eb3a 100644 (file)
@@ -214,8 +214,8 @@ void cmd_conf(char *argbuf)
        }
 
        else if (!strcasecmp(cmd, "SET")) {
+               unbuffer_output();
                cprintf("%d Send configuration...\n", SEND_LISTING);
-               flush_output();
                a = 0;
                while (client_gets(buf), strcmp(buf, "000")) {
                        switch (a) {
@@ -403,8 +403,8 @@ void cmd_conf(char *argbuf)
 
        else if (!strcasecmp(cmd, "PUTSYS")) {
                extract(confname, argbuf, 1);
+               unbuffer_output();
                cprintf("%d %s\n", SEND_LISTING, confname);
-               flush_output();
                confptr = CtdlReadMessageBody("000",
                                config.c_maxmsglen, NULL, 0);
                CtdlPutSysConfig(confname, confptr);
index 0566282098297fa7d46ddb6fcd2d8c81056e7882..c4b24b40916c8ecef08fbbcbe9eedb55c9a2eeec 100644 (file)
@@ -1798,6 +1798,8 @@ void cmd_einf(char *ok)
        char infofilename[SIZ];
        char buf[SIZ];
 
+       unbuffer_output();
+
        if (CtdlAccessCheck(ac_room_aide)) return;
 
        if (atoi(ok) == 0) {
@@ -1814,7 +1816,6 @@ void cmd_einf(char *ok)
                return;
        }
        cprintf("%d Send info...\n", SEND_LISTING);
-       flush_output();
 
        do {
                client_gets(buf);
index 6a6fdc80f22ce97c4b884594ba922c93a60fc175..788693bdf205363ac2bc30793a5dfef84b08a699 100644 (file)
@@ -55,6 +55,8 @@ void cmd_ebio(char *cmdbuf) {
        char buf[SIZ];
        FILE *fp;
 
+       unbuffer_output();
+
        if (!(CC->logged_in)) {
                cprintf("%d Not logged in.\n",ERROR + NOT_LOGGED_IN);
                return;
@@ -68,7 +70,6 @@ void cmd_ebio(char *cmdbuf) {
                return;
        }
        cprintf("%d  \n",SEND_LISTING);
-       flush_output();
        while(client_gets(buf), strcmp(buf,"000")) {
                if (ftell(fp) < config.c_maxmsglen) {
                        fprintf(fp,"%s\n",buf);
index bf6702ae831a1769ce2cd12299eddc849887e071..22984881cf1399f2dfbb59d2a2d15ca3d40decc0 100644 (file)
@@ -708,9 +708,9 @@ void cmd_sexp(char *argbuf)
                                                ERROR + RESOURCE_NOT_OPEN, x_user);
                        return;
                }
+               unbuffer_output();
                cprintf("%d Transmit message (will deliver to %d users)\n",
                        SEND_LISTING, message_sent);
-               flush_output();
                x_big_msgbuf = malloc(SIZ);
                memset(x_big_msgbuf, 0, SIZ);
                while (client_gets(x_msg), strcmp(x_msg, "000")) {
index 93d67017541c8056ee039cb1cbb8dda70a33750e..202c77588f3b4f9ccfcc5927b356274aac654d1e 100644 (file)
@@ -376,6 +376,8 @@ void cmd_snet(char *argbuf) {
        char buf[SIZ];
        FILE *fp;
 
+       unbuffer_output();
+
        if (CtdlAccessCheck(ac_room_aide)) return;
        safestrncpy(tempfilename, tmpnam(NULL), sizeof tempfilename);
        assoc_file_name(filename, sizeof filename, &CC->room, "netconfigs");
@@ -389,7 +391,6 @@ void cmd_snet(char *argbuf) {
        }
 
        cprintf("%d %s\n", SEND_LISTING, tempfilename);
-       flush_output();
        while (client_gets(buf), strcmp(buf, "000")) {
                fprintf(fp, "%s\n", buf);
        }
index 4bd7da5de7a5f187662db318a10cef2d638f73e6..101e6804227e3130c786e62f9b8a3cbcc3fdf717 100644 (file)
@@ -535,8 +535,9 @@ void artv_do_import(void) {
        char s_version[SIZ];
        int version;
 
+       unbuffer_output();
+
        cprintf("%d sock it to me\n", SEND_LISTING);
-       flush_output();
        while (client_gets(buf), strcmp(buf, "000")) {
 
                lprintf(CTDL_DEBUG, "import keyword: <%s>\n", buf);
index af22b3fda2f44a4997dd47c76d42bb37cfaa54d6..1ce0b931716d01edacf4f3af6b076d26d5b3870b 100644 (file)
@@ -548,6 +548,8 @@ void cmd_regi(char *argbuf) {
        char tmpaddress[SIZ];
        char tmpcountry[SIZ];
 
+       unbuffer_output();
+
        if (!(CC->logged_in)) {
                cprintf("%d Not logged in.\n",ERROR + NOT_LOGGED_IN);
                return;
@@ -561,7 +563,6 @@ void cmd_regi(char *argbuf) {
        strcpy(tmpcountry, "USA");
 
        cprintf("%d Send registration...\n", SEND_LISTING);
-       flush_output();
        a=0;
        while (client_gets(buf), strcmp(buf,"000")) {
                if (a==0) vcard_set_prop(my_vcard, "n", buf, 0);