def _fork(self, fid):
        ''' fid - fork id
        '''        
        try: 
            pid = os.fork() 
        except __HOLE__, e: 
            self.logger.error(
                "service._fork(), fork #%d failed: %d (%s)\n" % (fid, e.errno, e.strerror))
            raise OSError(e)  
        return pid
dataset/ETHPy150Open ownport/pyservice/pyservice.py/Service._fork