There's no thread here it's used to fork new process with replaced STD* to catch all the output from subprocess.