1
0
Fork 0
mirror of https://repo.or.cz/socat.git synced 2025-07-17 00:23:25 +00:00

Fixed PTYs on Solaris

This commit is contained in:
Gerhard Rieger 2022-10-29 22:32:14 +02:00
parent e0c669028d
commit 6340127060
4 changed files with 85 additions and 55 deletions

View file

@ -677,7 +677,10 @@ int Ioctl(int d, int request, void *argp) {
_errno = errno;
if (!diag_in_handler) diag_flush();
#if WITH_SYCLS
Debug1("ioctl() -> %d", retval);
if (retval < 0)
Debug2("ioctl() -> %d, errno=%d", retval, _errno);
else
Debug1("ioctl() -> %d", retval);
#endif /* WITH_SYCLS */
errno = _errno;
return retval;