We want to send signal to the photon application with some DATA.
For this we have used sigqueue(sigThread, SIGUSR1, v); - where v is union sigval having value 1234.
In Photons main application we have used PtAppAddSignalProc to attach handler to the signal SIGUSR1.
int my_signal_proc1( int signal, void *data )
if (ABW_lbl != NULL)
printf(“ABW_lbl is not null”);
PtSetResource(ABW_lbl, Pt_ARG_TEXT_STRING, “in my_signal_proc1”, 0);
printf(“ABW_lbl is null”);
In this Photon handler we want to get siginfo_t which will give us 1234 value. Is there is any function which we can call in Signal Handler to retrieve siginfo_t?