[Bug libfortran/47432] New: ttyname() not thread-safe

jb at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Jan 24 12:04:00 GMT 2011


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47432

           Summary: ttyname() not thread-safe
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libfortran
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: jb@gcc.gnu.org


In libgfortran/io/unix.c we call the POSIX ttyname() function, which need not
be thread-safe. Instead we should call ttyname_r(), if available.



More information about the Gcc-bugs mailing list