public inbox for cygwin-patches@cygwin.com
 help / color / mirror / Atom feed
From: Takashi Yano <takashi.yano@nifty.ne.jp>
To: cygwin-patches@cygwin.com
Subject: Re: [PATCH] Cygwin: pipe: Give up to use query_hdl for non-cygwin apps.
Date: Sun, 3 Mar 2024 20:36:41 +0900	[thread overview]
Message-ID: <20240303203641.09321b0a0713e8bdb90980b5@nifty.ne.jp> (raw)
In-Reply-To: <87a5nfbnv7.fsf@Gerda.invalid>

On Sun, 03 Mar 2024 11:39:40 +0100
ASSI wrote:
> Takashi Yano writes:
> >> After noticing that we enumerate all the processes (which is an expensive
> >> operation) just to skip all of the non-Cygwin ones anyway, I wonder if it
> >> wouldn't be smarter to go through the internal list of cygpids and take it
> >> from there, skipping the `SystemProcessInformation` calls altogether.
> >
> > Yeah, that makes sens. I'll submit v2 patch.
> 
> Keep in mind that there may be different independent Cygwin
> installations running on the same nachine.

That's possible. But how can we know that is a process in another
installaion of cygwin?

If it is difficult, I think it is not so nonsense to treat it as
same as non-cygwin process.

-- 
Takashi Yano <takashi.yano@nifty.ne.jp>

  reply	other threads:[~2024-03-03 11:36 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-03  5:09 Takashi Yano
2024-03-03  9:34 ` Johannes Schindelin
2024-03-03 10:21   ` Takashi Yano
2024-03-03 10:39     ` ASSI
2024-03-03 11:36       ` Takashi Yano [this message]
2024-03-04 10:34         ` Corinna Vinschen
2024-03-04 15:45           ` ASSI
2024-03-04 17:38             ` Corinna Vinschen
2024-03-05  0:06               ` Takashi Yano
2024-03-05 10:14                 ` Corinna Vinschen
2024-03-05 14:47                   ` Takashi Yano
2024-03-05 16:54                     ` Corinna Vinschen
2024-03-05 18:42                       ` Takashi Yano
2024-03-05 18:46                         ` Takashi Yano
2024-03-06 12:54                         ` Corinna Vinschen

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=20240303203641.09321b0a0713e8bdb90980b5@nifty.ne.jp \
    --to=takashi.yano@nifty.ne.jp \
    --cc=cygwin-patches@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).