Projects
Eulaceura:Mainline:GA
telnet
_service:obs_scm:telnet-0.17-errno_test_sys_bsd...
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:obs_scm:telnet-0.17-errno_test_sys_bsd.patch of Package telnet
diff -up netkit-telnet-0.17/telnet/sys_bsd.c.errnosysbsd netkit-telnet-0.17/telnet/sys_bsd.c --- netkit-telnet-0.17/telnet/sys_bsd.c.errnosysbsd 2007-09-20 10:57:58.000000000 +0200 +++ netkit-telnet-0.17/telnet/sys_bsd.c 2007-09-20 11:10:08.000000000 +0200 @@ -375,6 +375,7 @@ TerminalNewMode(int f) int onoff; int old; cc_t esc; + int err; globalmode = f&~MODE_FORCE; if (prevmode == f) @@ -407,6 +408,12 @@ TerminalNewMode(int f) tcsetattr(tin, TCSADRAIN, &tmp_tc); #endif /* USE_TERMIO */ old = ttyflush(SYNCHing|flushout); + if (old < 0) { + err = errno; + if (! ((err == EINTR) || (err == EAGAIN) || (err == ENOSPC))) { + break; + } + } } while (old < 0 || old > 1); }
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2