Proc.interact(): redirect stdout/stderr to stdin when socket mode