public inbox for libc-hacker@sourceware.org
 help / color / mirror / Atom feed
From: David Mosberger <davidm@napali.hpl.hp.com>
To: libc-hacker@sources.redhat.com
Subject: is dl_iterate_phdr() supposed to be async-signal safe?
Date: Thu, 01 Apr 2004 07:50:00 -0000	[thread overview]
Message-ID: <16491.51649.225477.81600@napali.hpl.hp.com> (raw)

Subject pretty much says it all: I thought it was meant to be
async-signal safe but looking at the __pthread_mutex_lock() code, it
pretty clearly can't be, since it's updating the count and ownership
members non-atomically with respect to signal-delivery.  Or am I
missing something?

So much for dl_iterate_phdr() being an "obvious" interface... ;-/

	--david

             reply	other threads:[~2004-04-01  7:50 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-04-01  7:50 David Mosberger [this message]
2004-04-01 21:22 ` Roland McGrath
2004-04-02  0:09   ` David Mosberger
2004-04-19 18:39     ` what to do about dl_iterate_phdr() David Mosberger

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=16491.51649.225477.81600@napali.hpl.hp.com \
    --to=davidm@napali.hpl.hp.com \
    --cc=davidm@hpl.hp.com \
    --cc=libc-hacker@sources.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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).