This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/16419] New: setlogmask is gratuitously thread-unsafe


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]