From 74e5140a735dd1645fc816713a7e948a89161325 Mon Sep 17 00:00:00 2001 From: rdivacky Date: Thu, 11 Sep 2008 15:28:28 +0000 Subject: [PATCH] The ERESTART to EINTR conversion is already done in kern_select so there is no need to repeat it in linux_select(). Submitted by: Dmitry Chagin MFC after: 1 week Approved by: kib (mentor) --- sys/compat/linux/linux_misc.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/sys/compat/linux/linux_misc.c b/sys/compat/linux/linux_misc.c index a0f3907f00b5..6484c59a28b7 100644 --- a/sys/compat/linux/linux_misc.c +++ b/sys/compat/linux/linux_misc.c @@ -532,15 +532,8 @@ linux_select(struct thread *td, struct linux_select_args *args) if (ldebug(select)) printf(LMSG("real select returns %d"), error); #endif - if (error) { - /* - * See fs/select.c in the Linux kernel. Without this, - * Maelstrom doesn't work. - */ - if (error == ERESTART) - error = EINTR; + if (error) goto select_out; - } if (args->timeout) { if (td->td_retval[0]) {