fprintf(stderr, "[%s] > Notified with value: %s!\n", "process2", strsignal(msg.signo[0]));
raise(msg.signo[0]);
}
- else if (msgrcv(qid, &msg, sizeof(int), 2, 0) > 0) {
- fprintf(stderr, "[%s] > Notified with value: %s!\n", "process2", strsignal(msg.signo[0]));
- raise(msg.signo[0]);
- }
}
else if (signo == SIGTERM) {
fprintf(stderr, "[%s] > Signalling other processes..\n", "process2");