s4-python: fixed annoyance where control-C doesn't kill our python scripts
authorAndrew Tridgell <tridge@samba.org>
Fri, 23 Oct 2009 06:12:48 +0000 (17:12 +1100)
committerAndrew Tridgell <tridge@samba.org>
Sun, 25 Oct 2009 02:15:18 +0000 (13:15 +1100)
commite7d9f5eea52403f576b636a35fb9889ed82cbf0b
treef8aae522ec4a3b5cdc42b55b3757d785f2c2af9a
parenta07eb08870823fa443911d3b857724bde1e3021b
s4-python: fixed annoyance where control-C doesn't kill our python scripts

We want our scripts to die immediately when a user hits
control-C. Otherwise we not only annoy the hell out of the user, we
also risk db corruption as the control-C could get delivered as an
exception which gets mis-interpreted (eg. as a missing db object). We
use transactions for all our databases, so the right thing to do in
all our command line tools is to die immediately.
source4/scripting/python/pyglue.c