A widespread custom, up to the 19th century, was the ‘barring-out’ of the schoolteacher by his pupils. On a day sanctioned by custom (but varying from place to place), the pupils contrived to bar the door with the teacher outside, often with his connivance, and refused to let him in until he agreed to their terms, which were usually for a half-holiday, or something similar. By the 19th century the custom was relatively controlled, but in previous generations had been much rougher. On at least one occasion, in Scotland in 1595, a magistrate who was helping the teacher gain access to the school was shot dead by one of the pupils. Not surprisingly, local authorities waged a continual war against such activities and gradually succeeded in taming and, eventually, eliminating the custom.
"The practice of barring-out, was a savage license practised in many schools to the end of
the last century, by which the boys, when the periodical vacation drew near, growing petulant
at the approach of liberty, some days before the time of regular recess, took possession of the
school, of which they barred the doors, and bade their master defiance from the windows. It is
not easy to suppose that on such occasions the master would do more than laugh; yet, if
tradition may be credited, he often struggled hard to force or surprise the garrison( ━━ n., vt. 守備隊（を置く）, 要塞地（として守備する）.).
The master, when Pigot was a school-boy, was barred-out at Lichfield, and the whole operation, as he said, was planned and conducted by Addison."