Preparation for async read from stdout/stderr.