2008-09-03
2008-09-03 21:28:49 by Marcus Comstedt <marcus@mc.pp.se>
-
9181bdab28eacbc830239003fcc1ae99bdbf5ad1
(3 lines)
(+3/-0)
[
Show
| Annotate
]
Branch: 7.9
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 )