From: Kevin Buettner <kevinb@redhat.com>
To: Daniel Jacobowitz <drow@mvista.com>, Michael Snyder <msnyder@redhat.com>
Cc: gdb-patches@sources.redhat.com
Subject: Re: linux-proc readlink patch
Date: Wed, 09 Jan 2002 15:40:00 -0000 [thread overview]
Message-ID: <1020109234011.ZM1423@localhost.localdomain> (raw)
In-Reply-To: Daniel Jacobowitz <drow@mvista.com> "Re: linux-proc readlink patch" (Jan 9, 6:10pm)
On Jan 9, 6:10pm, Daniel Jacobowitz wrote:
> On Wed, Jan 09, 2002 at 02:18:53PM -0800, Michael Snyder wrote:
> > Nope, that's not the semantics. Cleanups are always done, no later than
> > when the command is finished executing (if not earlier). I even checked
> > to make sure that these were done. There's no memory leak.
>
> Well, the comments in utils.c are wrong, then :)
>
> > > (2) It is not, IIRC, always correct in the case of chroots. Handling for
> > > this has changed across Linux versions several times. On 2.2 it seems to be
> > > correct (to my surprise, actually), but I believe it is not on 2.0. Do we
> > > care? Probably not, as 2.0 is now -very- old.
> >
> > Well, if it fails, the code falls back to using the original /proc name.
>
> By fails, I meant that the output of readlink was not useful. But I
> don't think this is a concern.
So the link was just wrong? If so, then opening /proc/<pid>/exe won't work
either, right?
If these old kernels managed to somehow open the right file but provide
an incorrect link via readlink(), I suppose we could stat() the file
to see if it exists.
Kevin
next prev parent reply other threads:[~2002-01-09 23:40 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-01-09 12:15 Daniel Jacobowitz
2002-01-09 12:51 ` Andrew Cagney
2002-01-09 14:24 ` Michael Snyder
2002-01-09 15:09 ` Daniel Jacobowitz
2002-01-09 15:40 ` Kevin Buettner [this message]
2002-01-09 15:45 ` Daniel Jacobowitz
2002-01-10 7:56 Michael Elizabeth Chastain
2002-01-10 9:32 ` Michael Snyder
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=1020109234011.ZM1423@localhost.localdomain \
--to=kevinb@redhat.com \
--cc=drow@mvista.com \
--cc=gdb-patches@sources.redhat.com \
--cc=msnyder@redhat.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