I think no because $variable is global variable. It redirects stdout in all threads even if it is in other module (I think module protects only namespace not global variables). > $stdin, $stdout, $stderr = client_stdin, client_stdout, client_stderr > > load(file)