I had a look at this existing post on the matter (What is the difference between ping -w and ping -W?), however either I don't understand what the ping
-w flag is doing or it is just not working properly.
See below a ping command that takes more than 40 seconds to fail on my raspberry in spite of me trying to set a deadline of 1 second.
root@raspberrypi:~/scripts# time ping -c 1 -w 1 -W 1 www.google.com ping: www.google.com: Temporary failure in name resolution real 0m40.064s user 0m0.010s sys 0m0.020s
Any idea what I'm doing wrong ? or should I open a bug ?