summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_sig.c
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>2002-05-05 04:50:47 +0000
committerbde <bde@FreeBSD.org>2002-05-05 04:50:47 +0000
commit31ade1b13e34b70c8140b0bd3106e64b0ea42def (patch)
tree5637020ec4dd802ee567d37ffc1b75feaa62c14e /sys/kern/kern_sig.c
parent0871762074372e2e7c95c755d83109fc2c52699b (diff)
downloadFreeBSD-src-31ade1b13e34b70c8140b0bd3106e64b0ea42def.zip
FreeBSD-src-31ade1b13e34b70c8140b0bd3106e64b0ea42def.tar.gz
Return the correct error code (ENOSYS, not EINVAL) from nosys(). Getting
killed by SIGSYS for unimlemented syscalls is bad enough. Obtained from: Lite2 branch The Lite2 branch has some other interesting unmerged (?) bits in this file. They are well hidden among cosmetic regressions.
Diffstat (limited to 'sys/kern/kern_sig.c')
-rw-r--r--sys/kern/kern_sig.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/kern_sig.c b/sys/kern/kern_sig.c
index 5cb7ed0..cc361f0 100644
--- a/sys/kern/kern_sig.c
+++ b/sys/kern/kern_sig.c
@@ -2078,7 +2078,7 @@ nosys(td, args)
psignal(p, SIGSYS);
PROC_UNLOCK(p);
mtx_unlock(&Giant);
- return (EINVAL);
+ return (ENOSYS);
}
/*
OpenPOWER on IntegriCloud