projects
/
haproxy-2.5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cc794b9
)
BUILD/MINOR: haproxy DragonFlyBSD affinity build update.
author
David Carlier
<devnexen@gmail.com>
Wed, 2 Dec 2020 21:14:51 +0000
(21:14 +0000)
committer
Willy Tarreau
<w@1wt.eu>
Wed, 2 Dec 2020 21:43:57 +0000
(22:43 +0100)
sched_setaffinity supported by this platform.
src/haproxy.c
patch
|
blob
|
history
diff --git
a/src/haproxy.c
b/src/haproxy.c
index
6d17f31
..
f6236fb
100644
(file)
--- a/
src/haproxy.c
+++ b/
src/haproxy.c
@@
-3426,7
+3426,7
@@
int main(int argc, char **argv)
}
ret = cpuset_setaffinity(CPU_LEVEL_WHICH, CPU_WHICH_PID, -1, sizeof(cpuset), &cpuset);
}
-#elif defined(__linux__)
+#elif defined(__linux__) || defined(__DragonFly__)
sched_setaffinity(0, sizeof(unsigned long), (void *)&global.cpu_map.proc[proc]);
#endif
#endif