chiark
/
gitweb
/
~ijackson
/
trains.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6f3f2bc
)
only autoflush if the message ends with \n
author
ian
<ian>
Fri, 11 Apr 2008 19:04:35 +0000
(19:04 +0000)
committer
ian
<ian>
Fri, 11 Apr 2008 19:04:35 +0000
(19:04 +0000)
hostside/obc.c
patch
|
blob
|
history
diff --git
a/hostside/obc.c
b/hostside/obc.c
index 33ab3f26b453ade0203c75020028309e2fd3d865..853489055b36229a7b9a39e88114e1679444f059 100644
(file)
--- a/
hostside/obc.c
+++ b/
hostside/obc.c
@@
-63,7
+63,8
@@
static void addlink(OutBufferChain *ch, OutBuffer *ob) {
events->on_fd(events, ch->fd, OOP_WRITE, writeable, ch);
LIST_LINK_TAIL(ch->obs, ob);
ch->total += ob->l;
- obc_tryflush(ch);
+ if (ob->l>0 && ob->m[ob->l-1]=='\n')
+ obc_tryflush(ch);
if (ch->total > ch->limit) {
char what[128];
snprintf(what,sizeof(what)-1,"`%.*s...'", ob->l,ob->m);