Author Bernt.Røskar.Brenna
Recipients Bernt.Røskar.Brenna, astrand, gps, neologix, r.david.murray, sbt, tim.golden, vstinner
Date 2013-11-18.11:43:35
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1384775016.13.0.612707739221.issue19575@psf.upfronthosting.co.za>
In-reply-to
Content
Never mind, I figured it:

On Python 3.3, the combination of locking around Popen and opening the file that I redirect to using the code below works (code from scons):

def open_noinherit(*args, **kwargs):
    fp = open(*args, **kwargs)
    win32api.SetHandleInformation(msvcrt.get_osfhandle(fp.fileno()),
                                  win32con.HANDLE_FLAG_INHERIT,
                                  0)
    return fp
History
Date User Action Args
2013-11-18 11:43:36Bernt.Røskar.Brennasetrecipients: + Bernt.Røskar.Brenna, astrand, vstinner, gps, tim.golden, r.david.murray, neologix, sbt
2013-11-18 11:43:36Bernt.Røskar.Brennasetmessageid: <1384775016.13.0.612707739221.issue19575@psf.upfronthosting.co.za>
2013-11-18 11:43:36Bernt.Røskar.Brennalinkissue19575 messages
2013-11-18 11:43:35Bernt.Røskar.Brennacreate