The ping command does not respect -w timeout when called as child process
Issue
If the "ping" command is called with "-w
if the C code manipulates blocked or ignored signal masks in such a way that signal 14 (SIGALRM) is blocked, then the ping than fails.
If such a ping is used to a non existent or unavailable IP address with-w less then 3, the ping returns after 3 seconds, and not the time specified by -w.
Environment
Rhel 6
iputils rpm version less then iputils-20071127-24.el6.
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
