BSD 4_3_Tahoe release
[unix-history] / usr / src / usr.bin / tip / acu.c
index e6bfb17..1cc74cc 100644 (file)
@@ -5,7 +5,7 @@
  */
 
 #ifndef lint
  */
 
 #ifndef lint
-static char sccsid[] = "@(#)acu.c      5.4 (Berkeley) %G%";
+static char sccsid[] = "@(#)acu.c      5.5 (Berkeley) 12/4/87";
 #endif not lint
 
 #include "tip.h"
 #endif not lint
 
 #include "tip.h"
@@ -42,6 +42,7 @@ connect()
        if (!DU) {              /* regular connect message */
                if (CM != NOSTR)
                        pwrite(FD, CM, size(CM));
        if (!DU) {              /* regular connect message */
                if (CM != NOSTR)
                        pwrite(FD, CM, size(CM));
+               logent(value(HOST), "", DV, "call completed");
                return (NOSTR);
        }
        /*
                return (NOSTR);
        }
        /*
@@ -130,8 +131,10 @@ connect()
 disconnect(reason)
        char *reason;
 {
 disconnect(reason)
        char *reason;
 {
-       if (!conflag)
+       if (!conflag) {
+               logent(value(HOST), "", DV, "call terminated");
                return;
                return;
+       }
        if (reason == NOSTR) {
                logent(value(HOST), "", acu->acu_name, "call terminated");
                if (boolean(value(VERBOSE)))
        if (reason == NOSTR) {
                logent(value(HOST), "", acu->acu_name, "call terminated");
                if (boolean(value(VERBOSE)))