Module Name: src Committed By: ozaki-r Date: Wed Nov 4 08:07:54 UTC 2015
Modified Files: src/sbin/ping6: ping6.c Log Message: Fix rump.ping6 -c N (N > 1) doesn't work 2nd packet and subsequent packets are sent based on SIGALRM and it depends on poll(2) returns with EINTR by the signal. However, currently poll is rump-ified while signals aren't so the signal doesn't wake up poll and ping6 doesn't work expectedly. Rump-ifying signals is unsure (nobody does it for now) and the combination use of signals and poll makes the logic a bit complex. So let's fix the defect by stopping using signals for packet transmissions. The new logic is derived from ping(8). Bonus: ping6 -i 0.01 works as we expect now while the original didn't work enough fast. To generate a diff of this commit: cvs rdiff -u -r1.90 -r1.91 src/sbin/ping6/ping6.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.