Fixed the issue #1,use sigaction instead of signal

I am learning the signal of UNIX using the APUE. So I found your code and issue.I think this issue is not very important,but I just have the time and I am just learning it.Why I don't do this.