Linux – how to send signal from one program to another

linuxsignals

i am using message queue as an ipc between 2 programs.
Now i want to send data from one program to another using message queue and then intimate it through a signal SIGINT.

I dont know how to send a signal from one program to another .
Can anybody pls provide a sample code if they have the solution.

Best Answer

#include <sys/types.h>
#include <signal.h>
int kill(pid_t pid, int sig);
Related Topic