From: "Stephen P. Carrier" <carrier@berkeley.edu>
To: cygwin@cygwin.com
Subject: Re: Find out a process that holding the socket?
Date: Tue, 23 Aug 2022 09:08:52 -0700 [thread overview]
Message-ID: <CAKEdzNJQj78=ihd714MSNH5PkXP2GmRE74sBpB4PWLt26oqa6w@mail.gmail.com> (raw)
In-Reply-To: <1277628349.20220822192219@yandex.ru>
The 'handle' utility from Sysinternals should be able to help.
http://technet.microsoft.com/en-us/sysinternals/bb842062
--Stephen Carrier
BEAR Center
On Mon, Aug 22, 2022 at 9:35 AM Andrey Repin <anrdaemon@yandex.ru> wrote:
> Greetings, All!
>
> I'm trying to write a small helper utility, and I need to find out, which
> process is holding a particular socket open.
> Since there's no "lsof" utility in Cygwin, which is commonly suggested for
> this task on Linux, I'm failing to find an alternative.
> Is there a simple solution available or I have to dig down into WinAPI?
> The process is going to run elevated, if that matters.
>
>
> --
> With best regards,
> Andrey Repin
> Monday, August 22, 2022 19:15:48
>
> Sorry for my terrible english...
>
>
> --
> Problem reports: https://cygwin.com/problems.html
> FAQ: https://cygwin.com/faq/
> Documentation: https://cygwin.com/docs.html
> Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple
>
prev parent reply other threads:[~2022-08-23 16:09 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-22 16:22 Andrey Repin
2022-08-23 16:08 ` Stephen P. Carrier [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAKEdzNJQj78=ihd714MSNH5PkXP2GmRE74sBpB4PWLt26oqa6w@mail.gmail.com' \
--to=carrier@berkeley.edu \
--cc=cygwin@cygwin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).