Sep-29-2022, 08:07 AM
(This post was last modified: Sep-29-2022, 08:43 AM by Gribouillis.)
I don't think Python can do that directly however, in C there is a function named
sigaction()
that gives information about the process that sent the signal. You could find ways of calling this function by writing a C extension that invokes sigaction() or by using the ctypes module.