Where a process or summons in an action to recover the real property occupied by him, or the possession thereof, is served upon a tenant, he must forthwith give notice thereof to his landlord; otherwise he forfeits the value of three years' rent of such property, to the landlord or other person of whom he holds.
N.Y. Real Prop. Law § 225