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