public static String waitFor()

in containers-docker-local/src/main/java/org/apache/aries/containers/docker/local/impl/ProcessRunner.java [72:84]


    public static String waitFor(final Process process) throws IOException {
        if (process == null)
            return null;

        try {
            process.waitFor();
        } catch (InterruptedException e) {
            // Ignore
        }
        String res = new String(Streams.suck(process.getInputStream())).trim();
        LOG.debug("Result: {}", res);
        return res;
    }