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)
This commit is contained in:
Roman Divacky 2008-09-11 15:28:28 +00:00
parent 217d7296a8
commit 0d62170990

View File

@ -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]) {