1
0
Fork 0
mirror of https://repo.or.cz/socat.git synced 2025-07-07 21:36:32 +00:00

merged: compile problem caused by size_t/socklen_t mismatch; an invalid close() operation was performed

This commit is contained in:
Gerhard Rieger 2009-05-06 08:28:53 +02:00
parent e0c0e66748
commit 448fa74706
4 changed files with 40 additions and 34 deletions

View file

@ -554,8 +554,8 @@ int _xioopen_foxec(int xioflags, /* XIO_RDONLY etc. */
} else
#endif /* HAVE_PTY */
if (usepipes) {
Close(rdpip[1]);
Close(wrpip[0]);
if (rw == XIO_RDONLY) Close(rdpip[1]);
if (rw == XIO_WRONLY) Close(wrpip[0]);
} else {
Close(sv[1]);
}