Pason69: I'm not quite sure I understand that exactly. But if I am thinking about it correctly it would be like this
Pawns only move forward (of course) If a pawn cant move because of any piece in front of it, then the pawn cant move. The piece blocking the pawn is safe Pawns can only capture on diagonals. That would go for the king as well. The king would only be in danger if the pawn was on a diagonal. If I understand your question right, nothing would happen. The king is safe as long as it is directly in front of the pawn