Thanks for your question on Health Care Magic.
I can understand your concern.
Pneumonia spreads by droplet infection.
So better to give face mask to your child to prevent cross infection.
Also ask school authority to screen children with cough and cold. At least screen them with chest
x ray to detect early pneumonia.
Maintain good hygiene in your child like proper hand washing, avoid dust and pollution etc.
Maintain good immunity through healthy diet,
multivitamin and antioxidants tablet.
Consult doctor if your child develops cough, cold or
fever and get done chest x ray for screening purpose if needed.
No need to fear or worry about this incidence, you just need to be alert for your child.
Good immunity itself prevent cross infection.
Hope I have solved your query.
Wishing good health to your child.
Thanks.