Use thisthis(link broken) this library to get infos about the jobs, which are running.
There is a special field in the struct Job for the signals, called sigCgt
You may use something like this:
#include"read_proc.h" int main(void) { struct Root * rt=read_proc(); struct Job * jb=rt->first->job; printf("%ull\n",jb->sigCgt); return 0; }