signal in process communication:
I 'm a example in sun_unix that signal in process communication
It's here down but I only have freebsd in my machine.
how can i do the same in freebsd
eg:
#include <stdio.h>
#include <signal.h>
#include <unistd.h>
int
main( void ){
void sigset_catcher(int);
sighold(SIGUSR1);
sigset(SIGUSR2, sigset_catcher);
printf("Waiting for signal\n");
pause();
prntf("done\n");
exit(0);
}
void
sigset_catche( int n) {
printf("Recerved signal %d\n",n);
sigrelse(SIGUSR1);
printf("SIGUSR1 released!\n");
}
my computer errer is the sighold,sigset and the sigrelse are not exits.