ref: d979090fb616442e649b31ddb6f0dbb01e5ce59e
parent: d401a542727f39e4b9395e82a41792e1f39916f5
author: Ori Bernstein <ori@eigenstate.org>
date: Thu Jan 14 10:26:15 EST 2021
compose: unconditionally terminate messages with '\n' Plan 9 utils really want files to be terminated with a newline, so we should comply.
--- a/comp.c
+++ b/comp.c
@@ -71,6 +71,7 @@
while((n = read(fd, buf, Bufsz)) > 0)
if(write(c->fd[1], buf, n) != n)
break;
+ write(c->fd[1], "\n", 1);
close(c->fd[1]);
close(fd);
if(n == -1)