HomeClusterLabs Projects

High: ais: Bug rhbz#525552 - Move non-threadsafe calls to setenv() to after theā€¦

Description

High: ais: Bug rhbz#525552 - Move non-threadsafe calls to setenv() to after the fork()

Only the child processes actually needs these values and after the
call to fork we're no longer multi-threaded, so it is safe to set
them.

This prevents segfaults caused when one thread calls getenv(), via
syslog() and tzset(), at the same time that another is calling
setenv(). See https://bugzilla.redhat.com/show_bug.cgi?id=561282 for
more details.

The glibc maintainers refuse to acknowledge the issue as they're
apparently on a crusade to rid the world of threads, so instead we're
stuck with work-arounds like this.

Mercurial revision: 705a84cd832dcda8450edb2d7b07c54490108982

Details

Provenance
Andrew Beekhof <andrew@beekhof.net>Authored on Feb 24 2010, 4:14 AM
Parents
rPd5f2ca8e8b55: Low: cts: Make LogAudit less verbose during normal operation
Branches
Unknown
Tags
Unknown

Event Timeline