Skip empty stdin

This commit is contained in:
2026-01-24 14:42:34 -05:00
parent ba8a84c478
commit 8965a4d5d4

View File

@@ -107,6 +107,10 @@ pub fn main(init: std.process.Init) !void {
var stdin = &limited.interface;
while (stdin.fillMore()) {
// Sometimes fillMore will return 0 bytes.
// Skip these
if (stdin.seek == stdin.end) continue;
chunk_writer.end = 0;
try chunk_writer.print("{b64}", .{stdin.buffered()});
try client.sendRelay(init.io, chunk_writer.buffered(), parseDest(flags.dest));