Hi, I was wondering why in direct/src/task/Task.py
, near the beginning of the step(self)
function, the self.__prevHandler
is set to signal.signal(signal.SIGINT, self.keyboardInterruptHandler)
, which appears to be a full signal object itself, instead of just setting it to self.keyboardInterruptHandler
which is just the handler that will be passed later.
I may just be missing context, but can you initialize a signal using another signal? If so, does it make sense to here, or would it be better to just set it to a handler func?