diff --git a/python/blickfeld_scanner/stream/point_cloud.py b/python/blickfeld_scanner/stream/point_cloud.py index b546a3e..eaa1885 100644 --- a/python/blickfeld_scanner/stream/point_cloud.py +++ b/python/blickfeld_scanner/stream/point_cloud.py @@ -27,9 +27,12 @@ terminate = False +original_sigint_handler = signal.getsignal(signal.SIGINT) + def signal_handler(sig, frame): global terminate terminate = True + original_sigint_handler(sig, frame) # Catch CTRL-C and terminate and close the point cloud stream signal.signal(signal.SIGINT, signal_handler)