Opened 10 years ago

Closed 10 years ago

#7932 closed patch (fixed)

Fix win32 nice() macro in compat.h

Reported by: Jeff Lu <jll544@…> Owned by: Nigel
Priority: minor Milestone: 0.23
Component: Ports - Windows Version: head
Severity: medium Keywords: win32 nice
Cc: Ticket locked: no

Description

win32 uses a macro to implement unix-style niceness adjustments, but the macro is incorrect. It sets thread priority instead of process priority, and it increases priority when lower priority is requested. Attached patch corrects both issues.

Attachments (2)

7932-win32_nice.patch (1.0 KB) - added by Jeff Lu <jll544@…> 10 years ago.
7932-win32_nice.2.patch (1.0 KB) - added by Jeff Lu <jll544@…> 10 years ago.
Revised patch - fixes a typo

Download all attachments as: .zip

Change History (4)

Changed 10 years ago by Jeff Lu <jll544@…>

Attachment: 7932-win32_nice.patch added

comment:1 Changed 10 years ago by Stuart Auchterlonie

Milestone: unknown0.23

Changed 10 years ago by Jeff Lu <jll544@…>

Attachment: 7932-win32_nice.2.patch added

Revised patch - fixes a typo

comment:2 Changed 10 years ago by markk

Resolution: fixed
Status: newclosed

Fixed in r23301.

Note: See TracTickets for help on using tickets.