mirror of
https://repo.or.cz/socat.git
synced 2024-12-23 15:52:33 +00:00
system,pipes did not pass EOF to sub process
This commit is contained in:
parent
363fa568ac
commit
38f6677892
1 changed files with 3 additions and 0 deletions
|
@ -1157,6 +1157,9 @@ int _xioopen_foxec_end(int xioflags, /* XIO_RDONLY etc. */
|
||||||
a graceful solution via temporary descriptors */
|
a graceful solution via temporary descriptors */
|
||||||
int tmpi, tmpo;
|
int tmpi, tmpo;
|
||||||
|
|
||||||
|
Close(rdpip[0]);
|
||||||
|
Close(wrpip[1]);
|
||||||
|
|
||||||
if (fdi == rdpip[1]) { /* a conflict here */
|
if (fdi == rdpip[1]) { /* a conflict here */
|
||||||
if ((tmpi = Dup(wrpip[0])) < 0) {
|
if ((tmpi = Dup(wrpip[0])) < 0) {
|
||||||
Error2("dup(%d): %s", wrpip[0], strerror(errno));
|
Error2("dup(%d): %s", wrpip[0], strerror(errno));
|
||||||
|
|
Loading…
Reference in a new issue