[Bug libc/16419] New: setlogmask is gratuitously thread-unsafe
aoliva at sourceware dot org
sourceware-bugzilla@sourceware.org
Thu Jan 9 06:37:00 GMT 2014
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.
More information about the Glibc-bugs
mailing list