On the piston problem in Gasdynamics