summaryrefslogtreecommitdiffstats
path: root/sys/compat
diff options
context:
space:
mode:
authorrdivacky <rdivacky@FreeBSD.org>2008-09-11 15:28:28 +0000
committerrdivacky <rdivacky@FreeBSD.org>2008-09-11 15:28:28 +0000
commit74e5140a735dd1645fc816713a7e948a89161325 (patch)
tree90d4055f35ecac6c872ce66eb00332a86561fc6f /sys/compat
parent9c3efb4d4bed206378ecbb58e39b567a2d821d10 (diff)
downloadFreeBSD-src-74e5140a735dd1645fc816713a7e948a89161325.zip
FreeBSD-src-74e5140a735dd1645fc816713a7e948a89161325.tar.gz
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 <dchagin@> MFC after: 1 week Approved by: kib (mentor)
Diffstat (limited to 'sys/compat')
-rw-r--r--sys/compat/linux/linux_misc.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/sys/compat/linux/linux_misc.c b/sys/compat/linux/linux_misc.c
index a0f3907..6484c59 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]) {
OpenPOWER on IntegriCloud