On the behaviour of a gas near a wall