commit | 2c68908c11c05f89c7762243673ebc0d1d125200 | [log] [tgz] |
---|---|---|
author | Szymon Janc <szymon.janc@tieto.com> | Tue May 10 11:06:51 2011 +0200 |
committer | Johan Hedberg <jh@dell.(none)> | Sun May 15 01:47:08 2011 +0300 |
tree | 96b79ee946c82db0b313e0e07404250db96bc06e | |
parent | 31079f3b1baffe70a717a01e60eacfa6930a9ba7 [diff] |
Fix error check from write in channel_write
diff --git a/serial/proxy.c b/serial/proxy.c index 32878ba..d545e36 100644 --- a/serial/proxy.c +++ b/serial/proxy.c
@@ -212,7 +212,7 @@ while (wbytes < size) { written = write(fd, buf + wbytes, size - wbytes); - if (written) + if (written < 0) return -errno; wbytes += written;