]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
sched_getaffinity(3): more compatibility with Linux
authorKonstantin Belousov <kib@FreeBSD.org>
Sun, 24 Apr 2022 22:10:18 +0000 (01:10 +0300)
committerKonstantin Belousov <kib@FreeBSD.org>
Mon, 25 Apr 2022 14:22:09 +0000 (17:22 +0300)
commit67fc95025ccfc696ea5eaea0ecb1fff295760723
tree1ecf3784034d15b4ce0cf64a158addaea4c4f685
parent0a736f0a6aeb0bf8b7e677fab8b562704eb4980e
sched_getaffinity(3): more compatibility with Linux

Report EINVAL instead of EDEADLK when impossible cpu mask is set.

Noted by: dchagin
Reviewed by: dchagin (previous version), markj
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D35045
lib/libc/gen/sched_setaffinity.c