-
- // add handlers for output and stderr.
-
- this.out_src = this.out_ch.add_watch (
- IOCondition.OUT | IOCondition.IN | IOCondition.PRI | IOCondition.HUP | IOCondition.ERR ,
- (channel, condition) => {
- return this.read(_this.out_ch);
- }
- );
- this.err_src = this.err_ch.add_watch (
- IOCondition.OUT | IOCondition.IN | IOCondition.PRI | IOCondition.HUP | IOCondition.ERR ,
- (channel, condition) => {
- return this.read(_this.err_ch);
- }
- );
-
+
+ ChildWatch.add (this.pid, this.on_child_watch);
+
+
+
+
+
+
+ // add handlers for output and stderr.
+
+ this.out_src = (int) this.out_ch.add_watch (
+ IOCondition.OUT | IOCondition.IN | IOCondition.PRI | IOCondition.HUP | IOCondition.ERR ,
+ (channel, condition) => {
+ return this.read(channel);
+ //return this.out_ch != null ? this.read(this.out_ch) : true;
+ }
+ );
+ this.err_src = (int) this.err_ch.add_watch (
+ IOCondition.OUT | IOCondition.IN | IOCondition.PRI | IOCondition.HUP | IOCondition.ERR ,
+ (channel, condition) => {
+ return this.read(channel);
+ //return this.err_ch != null ? this.read(this.err_ch) : true;
+ }
+ );
+