public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Find out a process that holding the socket?
@ 2022-08-22 16:22 Andrey Repin
  2022-08-23 16:08 ` Stephen P. Carrier
  0 siblings, 1 reply; 2+ messages in thread
From: Andrey Repin @ 2022-08-22 16:22 UTC (permalink / raw)
  To: All

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...


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Find out a process that holding the socket?
  2022-08-22 16:22 Find out a process that holding the socket? Andrey Repin
@ 2022-08-23 16:08 ` Stephen P. Carrier
  0 siblings, 0 replies; 2+ messages in thread
From: Stephen P. Carrier @ 2022-08-23 16:08 UTC (permalink / raw)
  To: cygwin

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
>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-08-23 16:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-22 16:22 Find out a process that holding the socket? Andrey Repin
2022-08-23 16:08 ` Stephen P. Carrier

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).