Process output can deadlock
Waiting for a process before draining stdout and stderr can block when a pipe fills. Consume both streams concurrently or use a process API that manages them.
- @sohumm15▲ 1
Specific and to the point: "Process output can deadlock". Worth a look if you touch java / processes.
- @saltysamm▲ 1
"Process output can deadlock" is a useful thing to know about with java / processes. Thanks for sharing it.
- @hk3narwhal▲ 1
Redirecting a stream to a file or
Redirect.DISCARDavoids the pipe, but any stream left piped still needs draining. Corrections or other cases welcome below. - @sohmeh▲ 1
Clear note on java / processes. "Process output can deadlock" is the kind of detail that is easy to overlook.
- @dearsohum▲ 1
Specific and to the point: "Process output can deadlock". Worth a look if you touch java / processes.
- @aarya-mehta▲ 1
"Process output can deadlock" is a useful thing to know about with java / processes. Thanks for sharing it.
Specific and to the point: "Process output can deadlock". Worth a look if you touch java / processes.
- @imsa-mehta▲ 1
Good to see "Process output can deadlock" written down. Handy reference for anyone working with java / processes.
Clear note on java / processes. "Process output can deadlock" is the kind of detail that is easy to overlook.
Saved
Spot-on