This is the mail archive of the
mailing list for the Cygwin project.
Re: ctrl-c doesn't reliably kill ping
- From: Lee <ler762 at gmail dot com>
- To: cygwin at cygwin dot com
- Date: Wed, 16 Mar 2016 13:52:27 -0400
- Subject: Re: ctrl-c doesn't reliably kill ping
- Authentication-results: sourceware.org; auth=none
- References: <56E6F25A dot 7070000 at gmx dot de> <56E75B3E dot 7020102 at farance dot com> <CAD8GWstL-rUm9=q8tpReiiHm8Tmm94Caq7jQyszZ02Tw=EN_TQ at mail dot gmail dot com> <8D39BB0F-A716-4F56-AF2D-D6C928266F5A at etr-usa dot com>
On 3/16/16, Warren Young <email@example.com> wrote:
> On Mar 16, 2016, at 10:07 AM, Lee <firstname.lastname@example.org> 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 $?
Thanks for the info - nice to know that the cygwin version of ping is
Not that it's going to make any difference to me & my scripts, but
$ which ping
$ ping www.examle.com
Pinging www.examle.com [126.96.36.199] with 32 bytes of data:
Request timed out.
Request timed out.
$ echo $?
> Note my fine new # prompt, indicating an admin shell, which has been
> required for Cygwin ping from the very beginning 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
> Windows ping gets around this by
> special dispensation of the kernel.
> 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 :(
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple