This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/16419] New: setlogmask is gratuitously thread-unsafe
- From: "aoliva at sourceware dot org" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Thu, 09 Jan 2014 06:37:21 +0000
- Subject: [Bug libc/16419] New: setlogmask is gratuitously thread-unsafe
- Auto-submitted: auto-generated
https://sourceware.org/bugzilla/show_bug.cgi?id=16419
Bug ID: 16419
Summary: setlogmask is gratuitously thread-unsafe
Product: glibc
Version: 2.18
Status: NEW
Severity: normal
Priority: P2
Component: libc
Assignee: unassigned at sourceware dot org
Reporter: aoliva at sourceware dot org
CC: drepper.fsp at gmail dot com
The read and change of LogMask could be made safe using atomics, if the
overhead of taking and releasing syslog_lock is to be avoided.
(while at that, vsyslog_chk should probably use nocancel to open and close the
console; I'm not sure dprintf avoids sync cancellation too, but we don't want
cancellation there either, or we'll leak the console fd)
--
You are receiving this mail because:
You are on the CC list for the bug.