[Mailman-Developers] lock lifetime
bwarsaw@cnri.reston.va.us
bwarsaw@cnri.reston.va.us
Wed, 22 Mar 2000 16:18:48 -0500 (EST)
>>>>> "RK" == Ricardo Kustner <ricardo@rixhq.nu> writes:
RK> well I haven't used bin/withlist before, but maybe it could
RK> issue a warning when it runs?
Actually, I just remembered sys.exitfunc! I can set that up to unlock
a locked list automatically at interpreter exit. I don't want it to
implicitly save the list though -- you'll still have to do that
manually if you fiddle with it from the interpreter prompt.
Note that this function doesn't run if the interpreter exits because
of a signal or os._exit() call.
-Barry