Circusからファイルディスクリプタが渡されるのでsocket.fromfdを使えばいいらしい。 Python Pythonのバージョンは2.7.2。 myserver.py # coding: utf-8 import sys import socket import logging import select content = """HTTP/1.0 200 OK Content-Type: text/plain Length: 13 Hello world! """ content_length = len(content) def main(): sock = socket.fromfd(int(sys.argv[1]), socket.AF_INET, socket.SOCK_STREAM) try: while True: ready, notused, notused =