subprocess_loop
