NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
bin/49206: ping6 dies with SIGINT even when it just fails to ping
>Number: 49206
>Category: bin
>Synopsis: ping6 dies with SIGINT even when it just fails to ping
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: bin-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Sep 16 10:45:00 +0000 2014
>Originator: Ryota Ozaki
>Release: current
>Organization:
>Environment:
NetBSD rangeley 7.99.1 NetBSD 7.99.1 (GENERIC) #7: Mon Aug 25 15:02:51 JST 2014
ozaki-r@rangeley:(hidden) amd64
>Description:
ping6 dies with SIGINT on error (see below). It shouldn't be expected and
should simply exit with non-zero exit status (e.g. 2 as same as ping).
>How-To-Repeat:
$ cat ping6.rb
p system("/sbin/ping6 -c 1 fe80::225:90ff:fe82:985c%wm0")
p $?
p system("/sbin/ping6 -c 1 fe80::225:90ff:fe82:985c%wm1")
p $?
$ ruby ping6.rb
PING6(56=40+8+8 bytes) fe80::225:90ff:fe82:985c%wm0 -->
fe80::225:90ff:fe82:985c%wm0
16 bytes from fe80::225:90ff:fe82:985c%wm0, icmp_seq=0 hlim=64 time=0.086 ms
--- fe80::225:90ff:fe82:985c%wm0 ping6 statistics ---
1 packets transmitted, 1 packets received, 0.0% packet loss
round-trip min/avg/max/std-dev = 0.086/0.086/0.086/0.000 ms
true
#<Process::Status: pid 20653 exit 0>
PING6(56=40+8+8 bytes) fe80::1%lo0 --> fe80::225:90ff:fe82:985c%wm1
ping6: sendmsg: No route to host
ping6: wrote fe80::225:90ff:fe82:985c%wm1 16 chars, ret=-1
--- fe80::225:90ff:fe82:985c%wm1 ping6 statistics ---
1 packets transmitted, 0 packets received, 100.0% packet loss
false
#<Process::Status: pid 7904 SIGINT (signal 2)>
>Fix:
n/a
Home |
Main Index |
Thread Index |
Old Index