Re: [PATCH v6 2/2] tr2: log parent process name
- From
Ævar Arnfjörð Bjarmason <avarab@gmail.com>
- Date
- Aug 2, 2021, 18:42 UTC
- Message-ID
- <87bl6fofft.fsf@evledraar.gmail.com>
- In-Reply-To
- <xmqqwnp3x19i.fsf@gitster.g>
On Mon, Aug 02 2021, Junio C Hamano wrote:
Show 19 quoted lines
> Ævar Arnfjörð Bjarmason <avarab@gmail.com> writes: > >> On Wed, Jul 21 2021, Emily Shaffer wrote: >> >>> compat/linux/procinfo.c | 55 ++++++++++++++++++++++++++ >>> [...] >>> + /* NEEDSWORK: add non-procfs-linux implementations here */ >> >> We'd want non-Windows and non-Linux implementations of this, but that >> NEEDSWORK comment should not be in compat/linux/procinfo.c, where we're >> never going to add non-Linux code. > > I am puzzled. This is talking about additional implementation for > Linux that does not use procfs, no (i.e. what to do with builds of > Linux that compile out the procfs support or installations that do > not mount the /proc hierarchy)? > > The comment seems to be at the right place to remind us of them, > even though I do not know how important such an environment is.
Yes, I see I misread that, nevermind the narrow suggestion then.
Is there a way to do this sort of thing on Linux without procfs? Other than things that use procfs themselves, e.g. parsing "ps" output.