avocado/utils/process.py: Handle signal arguments - #5526
akihikodaki wants to merge 1 commit into
Conversation
signal.default_int_handler needs the arguments to be passed on. Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com>
|
@clebergnu It looks like Python changed its behavior with version 3.10.0: python/cpython#21197
You mean not maintaining them? I thought it clarifies Avocado does not care the arguments and it is just passing through. It will be also immune to an API change which adds a new argument to the signal handler. However, sometimes you may want to know the exact expected argument by looking at the header of |
Yes, I meant not maintaining them. But, I did not have the context about the change in function signature between versions (thanks for the explanation). In the end, because we need to support a wide range of Python versions, your original/current proposal is better indeed. I'm trying to understand the CI failures with jobs getting stuck, though. |

signal.default_int_handlerneeds the arguments to be passed on.Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com>