def serve_forever(self, demonize=None, daemonize=False):
        if demonize is not None:
            logging.warning("demonize is a deprecated argument to \
                            serve_forever; use 'daemonize' instead!")
            daemonize = demonize

        print 'Serving on interface "%s", port %d' % (self.host, self.port, )

        if daemonize:
            print "detaching to run as a daemon."
            pid = detach_as_demon_process(self)
            if pid:
                print 'PID', pid
                sys.exit(0)

        serve_forever(self)
Return True if a function is a generator.
dataset/ETHPy150Open cjlee112/pygr/pygr/coordinator.py/XMLRPCServerBase.serve_forever--crossover with--dataset/ETHPy150Open certik/line_profiler/kernprof.py/is_generator