linux-c-programming.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: kkonaka@mac.com
To: sos22@cam.ac.uk
Cc: linux-c-programming@vger.kernel.org
Subject: Re: LD_PRELOAD an anonymous file?
Date: Fri, 13 Sep 2002 10:55:19 -0400	[thread overview]
Message-ID: <sqb4rcuj5wo.wl@nue.mac.com> (raw)
In-Reply-To: <20020910105526.GA734@cam.ac.uk>

hi - thanks much!

> A (very brief) test suggested that the links in /proc/<parent pid>/fd
> should still work. e.g. if file descriptor 3 points to what used to
> be intercept.so, so will /proc/<parent pid>/fd/3.

brilliant! I've tried myself -- works fine :)
(my program actually does exec() without doing fork(),
so /proc/self/fd/<fd> was just fine.  also:
/dev/fd/<fd> worked equally okay on all of solaris2,
linux, netbsd :) )

> In principle, it could probably be done with ptrace() and the rest
> of the debugging API, but it wouldn't be much fun.

hmm., never thought about that direction - I'll think about it.

thanks again!!
kenji :)

      parent reply	other threads:[~2002-09-13 14:55 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-08-20 15:20 LD_PRELOAD an anonymous file? kkonaka
     [not found] ` <20020910105526.GA734@cam.ac.uk>
2002-09-13 14:55   ` kkonaka [this message]

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=sqb4rcuj5wo.wl@nue.mac.com \
    --to=kkonaka@mac.com \
    --cc=linux-c-programming@vger.kernel.org \
    --cc=sos22@cam.ac.uk \
    /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 NNTP newsgroup(s).