NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: bin/53463: ping responds late to SIGINT

The following reply was made to PR bin/53463; it has been noted by GNATS.

From: (Michael van Elst)
Subject: Re: bin/53463: ping responds late to SIGINT
Date: Mon, 23 Jul 2018 15:01:40 -0000 (UTC)

 kre%munnari.OZ.AU@localhost (Robert Elz) writes:
 >   | On NetBSD 8.0 this instantly brings back the shell prompt.
 > Are you sure?   That's not how I remember it, more or less, forever.
 On NetBSD _7_ it does, but NetBSD 8.0 shows the same behaviour as -current.
 This is the result of the fix for PR 51267 in ping.c 1.111.
 > The SIGINT tells ping to stop sending, it then waits for replies to the last
 > packets it sent (anything outstanding) calculates the stats on what was
 > sent/received ... etc, prints the results, and exits.
 It exits immediately if no packet had been sent yet or if a second SIGINT
 is sent.
 ktrace shows that the delay isn't for the ping interval, but for a DNS
 query. This query is executed with blocked signals and may take some time,
 depending on wether the answer is cached or not.
 ping -n doesn't show the problem.
                                 Michael van Elst
                                 "A potential Snark may lurk in every tree."

Home | Main Index | Thread Index | Old Index