implemented signal handlers..working on assignments.
implemented system,fork and exec system calls..including multiple and simultaneous fork…working with signals and handlers.
created master array.working on further project.
void signal_handler( int sig) { if(sig==SIGINT) { printf(“Signal %d received\n”,sig); (void) signal(SIGINT,SIG_IGN); (void) signal(SIGINT,SIG_DFL); }…………. in the above code when we press ctrl+c for the second time signal terminates the process instead of being ignored…is there any error in the … Continue reading
gdeveng sir…implemented fork(),simultaneous fork and wait…right nw working on multiple fork.
how is memory allocated in expression int *i=100; ?? above statement does’nt show any error..but is the statement correct?? because in documents its written “when a pointer is declared it doesnot point anywhere,we must set it to point sumwhere before … Continue reading
myapp: main.o 21.o 22.o gcc -o myapp main.o 21.o 22.o main.o: main.c a.h gcc -c main.c 21.o: 21.c a.h b.h gcc -c 21.c 22.o: 22.c b.h c.h gcc -c 22.c makefile:1: *** recipe commences before first target. Stop. ………how to … Continue reading