Branch: Tag:

2008-09-03

2008-09-03 21:28:49 by Marcus Comstedt <marcus@mc.pp.se>

Fixed FD reference bug in Process.run() when called with a string stdin.

Rev: lib/modules/Process.pmod:1.59

224: Inside #if constant(Thread.Thread)
   threads += ({    thread_create(lambda() { mystdin->write(stdin_str); } )    }); +  mystdin = 0;    }       exitcode = p->wait();
240:    Shuffler.Shuffle sf = Shuffler.Shuffler()->shuffle( mystdin );    sf->add_source(stdin_str);    sf->start(); +  mystdin = 0;    }       while( !p->status() || p->status() == 1 )