X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type :content-transfer-encoding; q=dns; s=default; b=UJeLdl8CtoT8EDvN GdKLcr3iZELXKkXiECVnEOenrCBizO7eZkyVjoZfxu4w7m+5hU5qzPoy7v6BqQaK tbtC54gvWeCTha51I2YpLSNv6idc9gb6slRgja2IIMLY4/7u11nWBQuq35e7sH9d XhA5yLqis6r3IsVYrdima3Mwtl0= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type :content-transfer-encoding; s=default; bh=irp4wAIq3BX521coo+AdN7 7Ethk=; b=J8rZ/oSxt13JjJpJVRi2n6LpGd6uPkUojW2WaYB+BzzY+QvrSlUfkR 47TRmDdSfJGSJoOVA9mQqAsXFBtiFGDRIPKSnu5jSrgEhYlR5s8VKb+Vi0wpQxPQ uHrfcnO7IIdrveFXurthOTa9Sc7OXtlD++i8D0iB55l9EGAnQmp5A= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com 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 AT etr-usa DOT com, wymletrusacom, sk:ler762, ler762 AT gmail DOT com X-HELO: mail-wm0-f44.google.com 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) In-Reply-To: <8D39BB0F-A716-4F56-AF2D-D6C928266F5A@etr-usa.com> References: <56E6F25A DOT 7070000 AT gmx DOT de> <56E75B3E DOT 7020102 AT farance DOT com> <8D39BB0F-A716-4F56-AF2D-D6C928266F5A AT etr-usa DOT com> Date: Wed, 16 Mar 2016 13:52:27 -0400 Message-ID: Subject: Re: ctrl-c doesn't reliably kill ping From: Lee To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id u2GHqsU3029549 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’t Ctrl-C out of it. So, if you’re using 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 restrictions > 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 “useless” because of that, 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