From f706f4bce8c8194eb57aa53603187eb626cd5131 Mon Sep 17 00:00:00 2001 From: sobomax Date: Mon, 7 Mar 2005 00:18:06 +0000 Subject: Handle unimplemented syscall by instantly returning ENOSYS instead of sending signal first and only then returning ENOSYS to match what real linux does. PR: kern/74302 Submitted by: Travis Poppe --- sys/compat/linux/linux_misc.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'sys/compat/linux/linux_misc.c') diff --git a/sys/compat/linux/linux_misc.c b/sys/compat/linux/linux_misc.c index 40762cb..7bbeaff 100644 --- a/sys/compat/linux/linux_misc.c +++ b/sys/compat/linux/linux_misc.c @@ -74,6 +74,8 @@ __FBSDID("$FreeBSD$"); #include "opt_compat.h" +#include + #ifdef COMPAT_LINUX32 #include #include @@ -1392,3 +1394,10 @@ linux_getsid(struct thread *td, struct linux_getsid_args *args) bsd.pid = args->pid; return getsid(td, &bsd); } + +int +linux_nosys(struct thread *td, struct nosys_args *ignore) +{ + + return (ENOSYS); +} -- cgit v1.1