Dima Kuznetsov has posted comments on this change. Change subject: utils: Remove duplicate set non-blocking functions ......................................................................
Patch Set 1: (2 comments) http://gerrit.ovirt.org/#/c/29413/1/lib/vdsm/utils.py File lib/vdsm/utils.py: Line 1142: def prependDefer(self, func, *args, **kwargs): Line 1143: self._finally.insert(0, (func, args, kwargs)) Line 1144: Line 1145: Line 1146: def setNonBlocking(fd): > Nir, I understand your appeal for consistency, but this patch introduces a Will change to set_non_blocking() Line 1147: if hasattr(fd, "fileno"): Line 1148: fd = fd.fileno() Line 1149: Line 1150: fl = fcntl.fcntl(fd, fcntl.F_GETFL) http://gerrit.ovirt.org/#/c/29413/1/vdsm/storage/remoteFileHandler.py File vdsm/storage/remoteFileHandler.py: Line 232: env['PYTHONPATH'].split(":"))) Line 233: self.process = CPopen([constants.EXT_PYTHON, __file__, Line 234: str(hisRead), str(hisWrite)], Line 235: close_fds=False, env=env) Line 236: > the only user of misc.setNonBlocking is called on (myRead, myWrite), which grepping did not turn up any non-fd callers, will change. Line 237: self.proxy = CrabRPCProxy(myRead, myWrite) Line 238: Line 239: except: Line 240: os.close(myWrite) -- To view, visit http://gerrit.ovirt.org/29413 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: comment Gerrit-Change-Id: I1fd242e8b437e485e45127d083c35957ccecf577 Gerrit-PatchSet: 1 Gerrit-Project: vdsm Gerrit-Branch: master Gerrit-Owner: Dima Kuznetsov <[email protected]> Gerrit-Reviewer: Dan Kenigsberg <[email protected]> Gerrit-Reviewer: Dima Kuznetsov <[email protected]> Gerrit-Reviewer: Nir Soffer <[email protected]> Gerrit-Reviewer: Piotr Kliczewski <[email protected]> Gerrit-Reviewer: Saggi Mizrahi <[email protected]> Gerrit-Reviewer: Yaniv Bronhaim <[email protected]> Gerrit-Reviewer: [email protected] Gerrit-Reviewer: oVirt Jenkins CI Server Gerrit-HasComments: Yes _______________________________________________ vdsm-patches mailing list [email protected] https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches
