use sigaction instead signal.
format code and correct log message.
Merge branch 'signal' of http://github.com/soarpenguin/tcpcopy into develop
combine the signal problem advised by soarpenguin