clix/send.lua

changeset 36
0712fda16ab6
parent 27
5b58c002d6ad
child 164
fafdcde2e2eb
--- a/clix/send.lua	Sun May 30 02:56:40 2010 +0100
+++ b/clix/send.lua	Mon Jun 07 13:42:46 2010 -0400
@@ -25,6 +25,9 @@
 				close = function () end;
 				receive = function (_, patt)
 					local data = io.stdin:read(patt);
+					if data == nil then
+						conn:close();
+					end
 					if opts.echo then
 						io.write(data, patt == "*l" and "\n" or "");
 					end

mercurial