commit 8c9e531ae3bdae867b92c5d3138d63e39f1d7fb8
parent 651647bb491b25a1d359c9f924513e75a057e1be
Author: Pavel Renev <an2qzavok@gmail.com>
Date: Sat, 11 May 2024 00:12:02 +0000
send: plumbsend returns n bytes written, we will ignore error checking entirely
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/sendreceive/send.c b/src/sendreceive/send.c
@@ -32,7 +32,7 @@ main(int argc, char **argv)
pd = plumbopen("send", OWRITE);
if (pd <= 0) sysfatal("no plumber: %r");
while ((msg.ndata = read(0, buf, BufSize)) > 0) {
- if (plumbsend(pd, &msg) != 0) sysfatal("%r");
+ plumbsend(pd, &msg);
}
close(pd);
}