shithub: riscv

Download patch

ref: 157b7751e7b885ff39d92ea67564c85346ddc986
parent: 64136bfd1670e1b3bae08684c6c4bb9dfc710043
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sat Jul 18 23:36:53 EDT 2015

devstream: fix mistake

--- a/sys/src/9/port/devstream.c
+++ b/sys/src/9/port/devstream.c
@@ -425,7 +425,7 @@
 		qunlock(&s->wql);
 		nexterror();
 	}
-	while(!streamdrained(s))
+	while(!isdrained(s))
 		sleep(&s->wz, isdrained, s);
 	qunlock(&s->wql);
 	poperror();