From 4ffff9f41c7765e965fc9543d0242dd1088766ef Mon Sep 17 00:00:00 2001 From: chzyer <0@0xdf.com> Date: Thu, 1 Sep 2016 20:01:12 +0800 Subject: [PATCH] fix cancelablestdin --- std.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/std.go b/std.go index 3e68aed..db7901b 100644 --- a/std.go +++ b/std.go @@ -89,7 +89,7 @@ loop: select { case <-c.notify: c.read, c.err = os.Stdin.Read(c.data) - <-c.notify + c.notify <- struct{}{} case <-c.stop: break loop }