return str.length;
}
-
-
+
/**
* read from pipe and call appropriate listerner and add to output or stderr string.
size_t len;
IOStatus status;
try {
+ var cond = ch.get_buffer_condition();
+ if ((cond & GLib.IOCondition.ERR) > 0) {
+ return false;
+ }
+ if ((cond & GLib.IOCondition.IN) < 1) {
+ return false;
+ }
status = ch.read_line( out buffer, out len, out term_pos );
} catch (Error e) {
//FIXme
- break; // ??
+ return false;
}