converted udp-echo to use sigaction

The udp-echo example has been converted from using signal(2)
to using sigaction(2).