python: call fault_setup() if samba.getopt is used
authorStefan Metzmacher <metze@samba.org>
Fri, 25 May 2018 05:52:40 +0000 (07:52 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Tue, 12 Jun 2018 09:04:55 +0000 (11:04 +0200)
commit454edac226bc87b9e68bc60add4c16f4bab9c275
treef7588f9ef81eac590423ed9f8c411174cdf27741
parent3ddd8527104f7364c07816fd9d3f1039a396a2f9
python: call fault_setup() if samba.getopt is used

This means we have a samba command line tool written in python,
e.g. samba-tool

We should get the samba typicall backtraces instead of
just "Segmentation fault (core dumped)".

BUG: https://bugzilla.samba.org/show_bug.cgi?id=13469

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date(master): Tue Jun 12 11:04:55 CEST 2018 on sn-devel-144
python/samba/getopt.py