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.
This commit is contained in:
Bruce Evans 2002-05-05 04:50:47 +00:00
parent 634d96e194
commit f5216b9a19

View File

@ -2078,7 +2078,7 @@ nosys(td, args)
psignal(p, SIGSYS);
PROC_UNLOCK(p);
mtx_unlock(&Giant);
return (EINVAL);
return (ENOSYS);
}
/*