aboutsummaryrefslogtreecommitdiffstats
path: root/src/util.rs
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2013-04-08 22:08:30 -0500
committerJesse Luehrs <doy@tozt.net>2013-04-08 22:09:03 -0500
commit9289b18119a0b8636a014a396bd0b2174ee49e3a (patch)
tree0b2e075e9d1b8913ac357aa2dbb323160ddf7e3d /src/util.rs
parentad2578a7ad98de9171400aea20c38f3ca237d88e (diff)
downloadrust-term-9289b18119a0b8636a014a396bd0b2174ee49e3a.tar.gz
rust-term-9289b18119a0b8636a014a396bd0b2174ee49e3a.zip
add some notes so i stop trying to fix things that aren't fixable yet
Diffstat (limited to 'src/util.rs')
-rw-r--r--src/util.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/util.rs b/src/util.rs
index 149f425..637668c 100644
--- a/src/util.rs
+++ b/src/util.rs
@@ -1,6 +1,9 @@
use core::libc::c_int;
// XXX huge hack until there's a better built-in way to do this
+// can't use core::pipes::select or core::comm::selecti because there's no
+// way to get a background task to quit if it's blocking on an io call
+// this will need to wait on the real libuv bindings
pub fn timed_read (timeout: int) -> Option<char> {
let first = unsafe { io_helper::timed_read(timeout as c_int) };
if first < 0 {