Simple question; How do you read the return value of a function that is called as a signal handler?
import signal
def SigHand(sig, frm):
return 'SomeValue'
signal.signal(signal.SIGCHLD, SigHand)
signal.pause()
Is there a way to read the return value 'SomeValue' other than setting it as a global?
You could create a simple class with a return value attribute.