]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add thread-private flag to indicate that error value is already placed
authorKonstantin Belousov <kib@FreeBSD.org>
Thu, 12 Apr 2012 10:48:43 +0000 (10:48 +0000)
committerKonstantin Belousov <kib@FreeBSD.org>
Thu, 12 Apr 2012 10:48:43 +0000 (10:48 +0000)
commit2dd9ea6f702c2e5791dc34794f285426d6bfb1ca
treeb11cc6ba65a78e38d9da1d9122832b5385fa56c5
parentd5d42003f434fc2e48622be7ad0154a0a5089c99
Add thread-private flag to indicate that error value is already placed
in td_errno. Flag is supposed to be used by syscalls returning
EJUSTRETURN because errno was already placed into the usermode frame
by a call to set_syscall_retval(9). Both ktrace and dtrace get errno
value from td_errno if the flag is set.

Use the flag to fix sigsuspend(2) error return ktrace records.

Requested by: bde
MFC after: 1 week
sys/kern/kern_sig.c
sys/kern/subr_syscall.c
sys/sys/proc.h