From f5216b9a1908a91a3d471665857c41f13aaa16b8 Mon Sep 17 00:00:00 2001 From: Bruce Evans Date: Sun, 5 May 2002 04:50:47 +0000 Subject: [PATCH] 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. --- sys/kern/kern_sig.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/kern/kern_sig.c b/sys/kern/kern_sig.c index 5cb7ed05488c..cc361f023e80 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); } /*