xpra icon
Bug tracker and wiki

This bug tracker and wiki are being discontinued
please use https://github.com/Xpra-org/xpra instead.


Ticket #2185: proxy-inheritable.patch

File proxy-inheritable.patch, 1.1 KB (added by Antoine Martin, 3 years ago)

proposed patch

  • xpra/server/proxy/proxy_server.py

     
    392392                    log.error("Error: some network IO threads have failed to terminate")
    393393                    return
    394394                client_conn.set_active(True)
     395                if PYTHON3:
     396                    try:
     397                        for conn in (client_conn, server_conn):
     398                            fd = conn.get_info().get("fileno", 0)
     399                            if fd:
     400                                os.set_inheritable(fd, True)
     401                    except:
     402                        log.error("Error: failed to set connections as inheritable", exc_info=True)
    395403                process = ProxyInstanceProcess(uid, gid, env_options, session_options, self._socket_dir,
    396404                                               self.video_encoders, self.csc_modules,
    397405                                               client_conn, disp_desc, client_state,