Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
execAndReturn in OS.java fails to collect command output. #1809
Steps to Reproduce
Although you used process.waitFor() to wait for termination of child process, you did not wait for the termination of collector thread. This results in collector.get returns incorrect text as the output of child process might not be collected completely at the point. executor.shutdown and executor.awaitTermination should be used to fix the problem.
It seems I do not have permission to create a branch for PR, so please refer to the patch output below.