int status = 1; // FIXME: should we signal "something went wrong" more distinctively?
try {
final Process p = exec(command, directory);
if (processListener != null) {
processListener.processStarted(p);
}
Thread inputWriterThread = new Thread(new Runnable() {
public void run() {
try {
BufferedWriter out = new BufferedWriter(new OutputStreamWriter(p.getOutputStream(), "UTF-8"));
Thanks - very good comments. I'm a bit embarrassed about the string comparison one, to be honest. I blame years of C++ and Go.
Actually, I should re-base (there's been some work on head), and re-do the pull request, as I've also made some fixes since I originally made it.
On Sun, 6 Dec 2020 at 01:53, ritschwumm notifications@github.com wrote: