All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Rémi Denis-Courmont" <remi@remlab.net>
To: Clemens Ladisch <clemens@ladisch.de>
Cc: alsa-devel@alsa-project.org
Subject: Re: [PATCH] Use thread-safe locale functions
Date: Tue, 13 Apr 2010 18:25:42 +0300	[thread overview]
Message-ID: <201004131825.42726.remi@remlab.net> (raw)
In-Reply-To: <4BC48B96.7040002@ladisch.de>

Le mardi 13 avril 2010 18:19:50 Clemens Ladisch, vous avez écrit :
> Rémi Denis-Courmont wrote:
> > setlocale() is not thread-safe. It can actually trigger a crash if
> > another thread uses locale informations at the same time in the process.
> > Library code should use POSIX newlocale/duplocale/uselocale/freelocale
> > instead.
> 
> I don't think these functions are available in small embedded C
> libraries like dietlibc.

And you're suggesting what? That we continue to let alsa-lib crash programs 
that use it?

-- 
Rémi Denis-Courmont
http://www.remlab.net/
http://fi.linkedin.com/in/remidenis
_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

  reply	other threads:[~2010-04-13 15:25 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-13 14:50 [PATCH] Use thread-safe locale functions Rémi Denis-Courmont
2010-04-13 15:19 ` Clemens Ladisch
2010-04-13 15:25   ` Rémi Denis-Courmont [this message]
2010-04-13 15:54   ` [PATCH] Check if uselocale() is present Rémi Denis-Courmont

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=201004131825.42726.remi@remlab.net \
    --to=remi@remlab.net \
    --cc=alsa-devel@alsa-project.org \
    --cc=clemens@ladisch.de \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.