Closed slowsoon closed 2 years ago
signal.signal not only returns callable object but also SIG_DFL, SIG_IGN and None. so, need to check if previous handler is callable before calling.
signal.signal not only returns callable object but also SIG_DFL, SIG_IGN and None. so, need to check if previous handler is callable before calling.