def __init__(self): self.callbacks = {} # pid -> callback self.last_status = 127 # wait -n error code