X-Recipient: archive-cygwin AT delorie DOT com X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org E23E63858C20 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=yandex.ru Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=yandex.ru X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1661186100; bh=YtMd5Ykk81PplDxJY10fXcdcaIBWlI2j2DtEcIfCU7I=; h=Subject:To:Message-ID:Reply-To:Date:From; b=bGNpX6RnNtc47ZYV9H4VLlnpKRJ9la9TLYkrtQYwK7255fpGA281RGzw63hv3OgXS A5cBVGDvllsWZPTEqhuq2UodDIvTk3M5iTJ0vjJ+fQORfCV9+RCmVV3H7/ZPfOTWjv mGUqc6XJg3OGJmzoQJlw097iWHpyq0+pPQZBrBTM= Authentication-Results: vla3-23c3b031fed5.qloud-c.yandex.net; dkim=pass header.i=@yandex.ru Date: Mon, 22 Aug 2022 19:22:19 +0300 From: Andrey Repin X-Mailer: The Bat! (v9.3.4) Professional Message-ID: <1277628349.20220822192219@yandex.ru> To: All Subject: Find out a process that holding the socket? MIME-Version: 1.0 X-Spam-Status: No, score=-0.5 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, KAM_THEBAT, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.29 List-Id: General Cygwin discussions and problem reports List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: cygwin AT cygwin DOT com Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "Cygwin" 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