From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13243 invoked by alias); 16 Mar 2016 17:52:42 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 13232 invoked by uid 89); 16 Mar 2016 17:52:40 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.3 required=5.0 tests=AWL,BAYES_50,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=wyml@etr-usa.com, wymletrusacom, sk:ler762, ler762@gmail.com X-HELO: mail-wm0-f44.google.com Received: from mail-wm0-f44.google.com (HELO mail-wm0-f44.google.com) (74.125.82.44) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Wed, 16 Mar 2016 17:52:30 +0000 Received: by mail-wm0-f44.google.com with SMTP id l68so201326292wml.0 for ; Wed, 16 Mar 2016 10:52:30 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-transfer-encoding; bh=Ds3Cv1aXGu4JGU+pQmgQls4ifxcJ0AZrHx9h8YGOLoc=; b=aSnCgaVmOnxmUgVAzoiGDQcx6MKSgzoaj5Vj1TE7glUYAQmwosZ5c1Xn9IiCyE55fa g9+TXWhlcpTrhW+UA2msXhaqMEi5MPl48yRnRQWqNMPXsdMzXgYHRPjnsNTdCQ4MM6Ex coA7FQ8cMJRLUreiQuvSfUDRTtx5ycOFTb/B7cj7rI+w2ahmkkvQ/qpaW5U2+Ty7AO0n Z+w/Rvc/UcoYRZ5qv1UESQvaVFwMGeBJfP1Kr3P7Z0pYFJ7kUZBC4l22Gxnl3lt6KNhq JWslJ/Ph57on/QjjB9TCJIF9edhOknQ8lOjxfpUmQ5vRQ/wgiySv4vg4eI/Bmlkv2Sv+ yzFA== X-Gm-Message-State: AD7BkJJxGFhvB0zV7Fxur/oCjqyzcc9O13uddpJ1BjIZj6vdUA011Srcsl+YiM0WhUyEZArUeu+Xr9pvlTKfLA== MIME-Version: 1.0 X-Received: by 10.28.212.85 with SMTP id l82mr5989273wmg.82.1458150747950; Wed, 16 Mar 2016 10:52:27 -0700 (PDT) Received: by 10.194.70.2 with HTTP; Wed, 16 Mar 2016 10:52:27 -0700 (PDT) In-Reply-To: <8D39BB0F-A716-4F56-AF2D-D6C928266F5A@etr-usa.com> References: <56E6F25A.7070000@gmx.de> <56E75B3E.7020102@farance.com> <8D39BB0F-A716-4F56-AF2D-D6C928266F5A@etr-usa.com> Date: Wed, 16 Mar 2016 17:52:00 -0000 Message-ID: Subject: Re: ctrl-c doesn't reliably kill ping From: Lee To: cygwin@cygwin.com Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes X-SW-Source: 2016-03/txt/msg00327.txt.bz2 On 3/16/16, Warren Young wrote: > On Mar 16, 2016, at 10:07 AM, Lee wrote: >> >> The last time I tried the cygwin ping program it didn't return a >> failure status > > It does if you don=E2=80=99t Ctrl-C out of it. So, if you=E2=80=99re usi= ng it from a > script, you just ask for one packet: > > # ping does.not.exist 1 1 > ping: unknown host does.not.exist > # echo $? > 1 Thanks for the info - nice to know that the cygwin version of ping is getting better. Not that it's going to make any difference to me & my scripts, but $ which ping /cygdrive/c/windows/system32/ping $ ping www.examle.com Pinging www.examle.com [69.172.201.208] with 32 bytes of data: Request timed out. Request timed out. C $ echo $? 130 > Note my fine new # prompt, indicating an admin shell, which has been > required for Cygwin ping from the very beginning[1] due to the restrictio= ns > on raw sockets added in Windows XP SP2. I've had a windows admin account for doing admin type things and a user account with no special/extra privs for normal use ever since I started using Win-XP, so the requirement to be running as admin (or answer a UAC prompt) puts cygwin ping into the "does not meet my needs" category. > Windows ping gets around this by > special dispensation of the kernel.[2] > > If you want to say Cygwin ping is =E2=80=9Cuseless=E2=80=9D because of th= at, My apologies. If I offended you or anyone else it wasn't intentional. I should have done a better job with my wording :( Best Regards, Lee -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple