Quantum quenches in one-dimensional gapless systems