s4-python: Override SIGINT handler in scripts only.
authorJelmer Vernooij <jelmer@samba.org>
Tue, 25 Sep 2012 18:49:22 +0000 (20:49 +0200)
committerJelmer Vernooij <jelmer@samba.org>
Tue, 25 Sep 2012 18:59:09 +0000 (20:59 +0200)
commitfa332b71dc71d23f1475ed6c25a6376934ab652a
tree1d260e1a86c56bd027ce2c6f2d74ade32ac9bb16
parentc034ff7b1516f827ab4538613ec98daa170d9f25
s4-python: Override SIGINT handler in scripts only.

Override the SIGINT handler in a few select cases only, rather than
doing so in one of the samba Python modules. I've done this where it
matters most; we can add this code to other scripts too if necessary.

This means that importing the 'samba' module from a third party
application does not have side-effects on the state of the signal
handlers.

Bug: https://bugzilla.samba.org/show_bug.cgi?id=9068
source4/scripting/bin/samba-tool
source4/scripting/bin/samba_upgradeprovision
source4/scripting/bin/smbstatus
source4/scripting/bin/subunitrun
source4/scripting/python/pyglue.c