Your message dated Fri, 14 Oct 2011 23:54:13 +0100
with message-id <[email protected]>
and subject line option -Z added
has caused the Debian Bug report #594696,
regarding zero exit code even if pings fail
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
594696: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=594696
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: oping
Version: 1.4.0-1
Severity: normal
Tags: upstream

oping does not communicate ping failure to the calling process like
the other ping tools do. Especially in the presence of the -c
option, oping should really exit non-zero if more than half the
pings fail.

Compare:

shelter:~% ping -c1 192.168.255.254 || echo "************** Non-zero exit code: 
$?"                  #90
PING 192.168.255.254 (192.168.255.254) 56(84) bytes of data.

--- 192.168.255.254 ping statistics ---
1 packets transmitted, 0 received, 100% packet loss, time 0ms

************** Non-zero exit code: 1
shelter:~% ping6 -c1 1::1 || echo "************** Non-zero exit code: $?"       
                     #91
PING 1::1(1::1) 56 data bytes

--- 1::1 ping statistics ---
1 packets transmitted, 0 received, 100% packet loss, time 0ms

************** Non-zero exit code: 1
shelter:~% oping -c1 192.168.255.254 || echo "************** Non-zero exit 
code: $?"                 #92
PING 192.168.255.254 (192.168.255.254) 56 bytes of data.
echo reply from 192.168.255.254 (192.168.255.254): icmp_seq=1 timeout

--- 192.168.255.254 ping statistics ---
1 packets transmitted, 0 received, 100.00% packet loss, time 0.0ms
shelter:~% oping -c1 1::1 || echo "************** Non-zero exit code: $?"       
                     #93
PING 1::1 (1::1) 56 bytes of data.
echo reply from 1::1 (1::1): icmp_seq=1 timeout

--- 1::1 ping statistics ---
1 packets transmitted, 0 received, 100.00% packet loss, time 0.0ms



-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.35-trunk-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_NZ, LC_CTYPE=en_NZ.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages oping depends on:
ii  libc6                     2.11.2-2       Embedded GNU C Library: Shared lib
ii  libncurses5               5.7+20100313-2 shared libraries for terminal hand
ii  liboping0                 1.4.0-1        C/C++ library to generate ICMP ECH

oping recommends no packages.

oping suggests no packages.

-- no debconf information


-- 
 .''`.   martin f. krafft <[email protected]>      Related projects:
: :'  :  proud Debian developer               http://debiansystem.info
`. `'`   http://people.debian.org/~madduck    http://vcs-pkg.org
  `-  Debian - when you have better things to do than fixing systems

Attachment: digital_signature_gpg.asc
Description: Digital signature (see http://martin-krafft.net/gpg/)


--- End Message ---
--- Begin Message ---
Package: oping
Version: 1.6.1+2.g207d51d-2

This issue is addressed by the new -Z option.

                                        --Barak.
--
Barak A. Pearlmutter
 Hamilton Institute & Dept Comp Sci, NUI Maynooth, Co. Kildare, Ireland
 http://www.bcl.hamilton.ie/~barak/


--- End Message ---

Reply via email to