System calls were not properly restarted when interrupted by signal - fixed.
Sources of /sbin/ping refactored to get rid of gcc warnings.