process_reader.py   [plain text]


"""Script used by test_process.TestTwoProcesses"""

# run until stdin is closed, then quit

import sys

while 1:
    d = sys.stdin.read()
    if len(d) == 0:
        sys.exit(0)