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/18086] New: nice() sets errno to 0 on success


https://sourceware.org/bugzilla/show_bug.cgi?id=18086

            Bug ID: 18086
           Summary: nice() sets errno to 0 on success
           Product: glibc
           Version: 2.21
            Status: NEW
          Severity: minor
          Priority: P2
         Component: libc
          Assignee: unassigned at sourceware dot org
          Reporter: jennieveenhuizen at gmail dot com
                CC: drepper.fsp at gmail dot com

Created attachment 8176
  --> https://sourceware.org/bugzilla/attachment.cgi?id=8176&action=edit
Diff against the current development source tree

The implementation of nice() sets errno to 0 on success.

Quoting POSIX: "No function in this volume of POSIX.1-2008 shall set errno to
0."

See attachment for the suggested fix.

-- 
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]