public IFileProcessorFutureResult call() {
        try {
            InputStream is = System.in;
            int byt = is.read();
            while (byt > -1) {
                byt = is.read();
            }
        } catch (Throwable e) {
            LOG.warn("Exception from STDIN in CommandlineInterrupter.", e);
        }
        new Thread(new Doomsday()).start();
        return new InterrupterFutureResult();
    }
Class that waits for input on System.in.  If this reads
EOF or if there is an exception from the parent's IO,
this will send a signal to shutdown the forked process.
<p>
This will call System.exit(-1) if the process
doesn't stop after {@link #pauseOnEarlyTermination}
milliseconds.
</p>
tika-batch/src/main/java/org/apache/tika/batch/Interrupter.java