Added signal catching and handling in C and Cython
This commit is contained in:
@ -11,6 +11,7 @@ from obitools3.utils cimport str2bytes
|
||||
|
||||
import time
|
||||
import sys
|
||||
from cpython.exc cimport PyErr_CheckSignals
|
||||
|
||||
|
||||
__title__="Keep the N last lines of a view."
|
||||
@ -70,6 +71,7 @@ def run(config):
|
||||
selection = Line_selection(i_view)
|
||||
|
||||
for i in range(start, len(i_view)):
|
||||
PyErr_CheckSignals()
|
||||
pb(i)
|
||||
selection.append(i)
|
||||
|
||||
|
Reference in New Issue
Block a user