Make return value of SetPriorityClass() behave the same as setpriority().
This commit is contained in:
parent
03b7118139
commit
07ffb1a198
3 changed files with 6 additions and 2 deletions
4
NEWS
4
NEWS
|
@ -1,3 +1,7 @@
|
|||
Version 1.0.15 not released yet
|
||||
|
||||
* Fix ProcessPriority option under Windows.
|
||||
|
||||
Version 1.0.14 May 8 2011
|
||||
|
||||
* Fixed reading configuration files that do not end with a newline. Again.
|
||||
|
|
|
@ -3,7 +3,7 @@ dnl Process this file with autoconf to produce a configure script.
|
|||
AC_PREREQ(2.61)
|
||||
AC_INIT
|
||||
AC_CONFIG_SRCDIR([src/tincd.c])
|
||||
AM_INIT_AUTOMAKE(tinc, 1.0.14)
|
||||
AM_INIT_AUTOMAKE(tinc, 1.0.14+git)
|
||||
AC_CONFIG_HEADERS([config.h])
|
||||
AM_MAINTAINER_MODE
|
||||
|
||||
|
|
|
@ -504,7 +504,7 @@ static bool drop_privs() {
|
|||
}
|
||||
|
||||
#ifdef HAVE_MINGW
|
||||
# define setpriority(level) SetPriorityClass(GetCurrentProcess(), (level))
|
||||
# define setpriority(level) !SetPriorityClass(GetCurrentProcess(), (level))
|
||||
#else
|
||||
# define NORMAL_PRIORITY_CLASS 0
|
||||
# define BELOW_NORMAL_PRIORITY_CLASS 10
|
||||
|
|
Loading…
Reference in a new issue