1

Parent process not able to catch signal in example program

view story
linux-howto

http://www.linuxquestions.org – I am learning signal concepts in linux I written this program Code: #include <stdio.h> #include <unistd.h> #include <signal.h> #include <stdlib.h> static int alarm_fired=0; void ding(int sig) {     int alarm_fired;     alarm_fired=1; } int main() {     pid_t pid;     printf("Alarm application starting\n");     pid=fork();         switch(pid)     {         case -1:             perror("fork failed");     &nb (HowTos)