diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2012-12-17 00:05:04 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2012-12-17 00:14:36 +0100 |
commit | cbe6f88b5ee7fa3394e916a8a7fe893066923b73 (patch) | |
tree | 218060794f87c0fbaa0a9b2f34ca322acf3598a8 /console-client | |
parent | 23c9bbee12b08bcbc82188dabe3bf8135756c183 (diff) |
Make io_select return errors
instead of returning 0 and make clients have to actually read the error.
This makes implementing "poll" much easier.
Based on Svante Signell's patch.
* pflocal/io.c (S_io_select): Return error returned by pipe_wait_readable or
pipe_wait_writable.
* trans/fifo.c (trivfs_S_io_select): Return error returned by
pipe_wait_readable or pipe_wait_writable. Return EBADF on bogus access mode.
* trans/new-fifo.c (trivfs_S_io_select): Likewise.
Diffstat (limited to 'console-client')
0 files changed, 0 insertions, 0 deletions