To really understand what's going on with signals, I suggest you read Marc J. Rochkind's ADVANCED UNIX PROGRAMMING. If you still need help after yyou've read chapter 8 in Rochkind's book, get back.