Our ancestors have advised many rituals to us as a precaution. These rituals and restrictions have deep roots and logic in Vedic science. to understand the logic sometimes we may have to analyse the topic with ayurvedic theory or sometimes we may find the answers in spiritual theory or geographic or even in physics sometimes.
As Dr.Srinivasa Rao rightly said above, During the eclipse, the radiations that are coming from the Moon/Sun will have some hazardous radiations. It is widely accepted that these radiation have dangerous effect on the eyes. If the eclipse is seen with naked eyes, the person may even become blind due to these rays' effect. Hence, to avoid such hazardous rays effect on our body some things are banned in the eclipse period.
Pregnant ladies are advised to be careful for some extra time before and after the eclipse to avoid the hazardous effect on the womb. This time is termed as "Grahan Pradosh Kaal" in the Hindu Calender detailing.
Those who do not believe in the mighty Hindu Science book "Rigveda" can also try to see some practical aspects related to the suggested rituals or banned things in eclipse period. Such as, in old times there was no electricity, so during the eclipse period it is obviously dark everywhere. So, it is advised that, pregnant women should not handle scissors or knives in the "Grahan Pradosh kal" i.e. eclipse effective period.
Some rituals have roots in medical science too. Such as, One should not eat non-veg food in the eclipse period. In the dark atmosphere and with dangerous radiations spread in air, non-veg food is most perishable risky food. So, logically, it is best to avoid it during eclipse.
Some Rituals have spiritual logic behind it. Eclipses occur on Full Moon (Poornima) or No Moon (Amaavas). Poornima and amaavas days, due to positioning of the Sun, the Earth and the Moon, the spiritual energy flow is stronger than any other day. Hence, these days are especially good for spiritual meditations. Hence our ancestors have advised to be at home and worship your choice of God during eclipse.
I have tried to give some examples with logic behind rituals. If you look closely, you can find many other points supporting my view.
Thanks for reading.
Life is God's Gift !! Appreciate Life !! Thank you Universe !!