Commit Diff


commit - 78439d25f8b2f6f2289e9f4e4400e0f7cdb5fa70
commit + 7103ceb031c14761d31d8f343e8978c6fec248d6
blob - 529837037b916689d1042b2e305da809394a0e3d
blob + 87e82a1453111fbbad32e0dc6412edaca87df406
--- src/cmd/sam/mesg.c
+++ src/cmd/sam/mesg.c
@@ -826,7 +826,7 @@ outsend(void)
 int
 needoutflush(void)
 {
-	return 1;
+	return outmsg >= outdata+DATASIZE;
 }
 
 void
@@ -835,6 +835,7 @@ outflush(void)
 	if(outmsg == outdata)
 		return;
 	outbuffered = 0;
+	/* flow control */
 	outT0(Hack);
 	waitack = 1;
 	do