[prev in list] [next in list] [prev in thread] [next in thread] 

List:       vdsm-patches
Subject:    Change in vdsm[master]: Sometimes the FD number can be reused in the child process
From:       danken () redhat ! com (danken at redhat ! com)
Date:       2012-11-30 8:04:06
Message-ID: 201211300804.qAU846ev030630 () gerrit ! ovirt ! org
[Download RAW message or body]

Dan Kenigsberg has posted comments on this change.

Change subject: Sometimes the FD number can be reused in the child process
......................................................................


Patch Set 1: I would prefer that you didn't submit this

(1 inline comment)

sorry, I do not understand the bug in the test or its fix. would you (or someone \
else) please explain it better?

....................................................
File tests/betterPopenTests.py
Line 58:         self.assertEquals(p.stdout.read().strip(), "True")
Line 59: 
Line 60:     def testCloseFDs(self):
Line 61:         fds = os.pipe()
Line 62:         rpath = os.path.realpath("/proc/%d/fds/%d" % (os.getpid(), fds[1]))
on my system it's called /proc/$$/fd/255
(notice the missing s)
Line 63:         try:
Line 64:             self._subTest("fds", [str(fds[1]), rpath], close_fds=True)
Line 65:         finally:
Line 66:             os.close(fds[0])


--
To view, visit http://gerrit.ovirt.org/9591
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: I7044936fba8923297c76d9a2123215ec2b793548
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Saggi Mizrahi <smizrahi at redhat.com>
Gerrit-Reviewer: Dan Kenigsberg <danken at redhat.com>


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic