I would like to rewrite this very simple C++ code using Python. Thanks to sig_atomic_t, it is guaranteed no data race will occur even when ::signal_handler()<
sig_atomic_t
::signal_handler()<