[Frontend] Fixed hanging /exec for programs that wait on stdin