Message7768
OK, if it's just for 2.5, I'm tempted to apply this fix, since getpid() is a common requirement for all kinds of things.
###########
import os
if not hasattr(os, 'getpid'):
from java.lang.management import ManagementFactory
_getpid = lambda: int(ManagementFactory.getRuntimeMXBean().name.split("@")[0])
setattr(os, "getpid", _getpid)
########### |
|
Date |
User |
Action |
Args |
2013-02-25 22:12:21 | amak | set | messageid: <1361830341.39.0.143144989459.issue1808@psf.upfronthosting.co.za> |
2013-02-25 22:12:21 | amak | set | recipients:
+ amak, otmarhumbel, fwierzbicki, irmen, whistler11783 |
2013-02-25 22:12:21 | amak | link | issue1808 messages |
2013-02-25 22:12:21 | amak | create | |
|