Whenever pursuant to this chapter a court stays, postpones, or suspends (1) the enforcement of an obligation or liability, (2) the prosecution of a suit or proceeding, (3) the entry or enforcement of an order, writ, judgment, or decree, or (4) the performance of any other act, the court may likewise grant such a stay, postponement, or suspension to a surety, guarantor, endorser, accommodation maker, comaker, or other person who is or may be primarily or secondarily subject to the obligation or liability the performance or enforcement of which is stayed, postponed, or suspended.
When a judgment or decree is vacated or set aside, in whole or in part, pursuant to this chapter, the court may also set aside or vacate, as the case may be, the judgment or decree as to a surety, guarantor, endorser, accommodation maker, comaker, or other person who is or may be primarily or secondarily liable on the contract or liability for the enforcement of the judgment or decree.
A court may not enforce a bail bond during the period of military service of the principal on the bond when military service prevents the surety from obtaining the attendance of the principal. The court may discharge the surety and exonerate the bail, in accordance with principles of equity and justice, during or after the period of military service of the principal.
This chapter does not prevent a waiver in writing by a surety, guarantor, endorser, accommodation maker, comaker, or other person (whether primarily or secondarily liable on an obligation or liability) of the protections provided under subsections (a) and (b). Any such waiver is effective only if it is executed as an instrument separate from the obligation or liability with respect to which it applies.
If a waiver under paragraph (1) is executed by an individual who after the execution of the waiver enters military service, or by a dependent of an individual who after the execution of the waiver enters military service, the waiver is not valid after the beginning of the period of such military service unless the waiver was executed by such individual or dependent during the period specified in section 3917 of this title.