Docker at some point decided to stop creating stderr pipes when starting a process connected to a terminal. This patch adds some select logic to correctly support this new use case.
This problem manifests when using runv with docker versions >1.13 and possibly earlier.
This patch fixes the problem for all versions by ignoring the need to open stderr if a terminal is requested and the file does not exist. If it does exist, it is presumed the old behaviour is desired.
Docker at some point decided to stop creating stderr pipes when starting a process connected to a terminal. This patch adds some select logic to correctly support this new use case.
This problem manifests when using runv with docker versions >1.13 and possibly earlier.
This patch fixes the problem for all versions by ignoring the need to open stderr if a terminal is requested and the file does not exist. If it does exist, it is presumed the old behaviour is desired.