I have a cold

And I was just thinking about this but what do you do if you go into labor with a cold? The new baby would be exposed to your cold. How would you keep baby from getting sick?