diff options
author | bde <bde@FreeBSD.org> | 2002-05-05 04:50:47 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 2002-05-05 04:50:47 +0000 |
commit | 31ade1b13e34b70c8140b0bd3106e64b0ea42def (patch) | |
tree | 5637020ec4dd802ee567d37ffc1b75feaa62c14e /sys | |
parent | 0871762074372e2e7c95c755d83109fc2c52699b (diff) | |
download | FreeBSD-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')
-rw-r--r-- | sys/kern/kern_sig.c | 2 |
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); } /* |