Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP5:Update
tigervnc.1021
u_tigervnc-ignore-epipe-on-write.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File u_tigervnc-ignore-epipe-on-write.patch of Package tigervnc.1021
Author: Michal Srb <msrb@suse.com> Subject: Ignore EPIPE on write. Patch-Mainline: To be upstreamed References: bnc#864676 If the VNC server closes connection after our last read and before this write, we will report error message about EPIPE. This situation is no error, however, we should quit normally same as when we find out that connection was closed during read. Index: common/rdr/FdOutStream.cxx =================================================================== --- common/rdr/FdOutStream.cxx (revision 5178) +++ common/rdr/FdOutStream.cxx (working copy) @@ -225,7 +225,12 @@ // network connections. Should in fact never ever happen... } while (n < 0 && (errno == EWOULDBLOCK)); - if (n < 0) throw SystemException("write",errno); + if (n < 0) { + if(errno == EPIPE) + n = length; // Ignore EPIPE and fake successfull write, it doesn't matter that we are writing to closed socket, we will find out once we try to read from it. + else + throw SystemException("write", errno); + } gettimeofday(&lastWrite, NULL);
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor