If the process writes to stderr
or stdout
, and you’re not reading it – it will just “hang” , blocking when writing to stdout/err
. Either redirect stdout/err
to /dev/null
using a shell or merge stdout/err
with redirectErrorStream(true) and spawn another thread that reads from stdout
of the process