Linux doesn't allow select(2) to be restarted.

This commit is contained in:
mycroft 1995-08-13 17:51:40 +00:00
parent 19f3c3099f
commit ad35618e1e
16 changed files with 160 additions and 32 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: linux_break.c,v 1.9 1995/06/24 20:20:26 christos Exp $ */ /* $NetBSD: linux_break.c,v 1.10 1995/08/13 17:51:40 mycroft Exp $ */
/* /*
* Copyright (c) 1995 Frank van der Linden * Copyright (c) 1995 Frank van der Linden
@ -772,8 +772,16 @@ linux_select(p, uap, retval)
if (ls.timeout) if (ls.timeout)
microtime(&tv0); microtime(&tv0);
if ((error = select(p, &bsa, retval))) error = select(p, &bsa, retval);
if (error) {
/*
* See fs/select.c in the Linux kernel. Without this,
* Maelstrom doesn't work.
*/
if (error == ERESTART)
error = EINTR;
return error; return error;
}
if (ls.timeout) { if (ls.timeout) {
if (!*retval) { if (!*retval) {

View File

@ -1,4 +1,4 @@
/* $NetBSD: linux_misc.c,v 1.9 1995/06/24 20:20:26 christos Exp $ */ /* $NetBSD: linux_misc.c,v 1.10 1995/08/13 17:51:40 mycroft Exp $ */
/* /*
* Copyright (c) 1995 Frank van der Linden * Copyright (c) 1995 Frank van der Linden
@ -772,8 +772,16 @@ linux_select(p, uap, retval)
if (ls.timeout) if (ls.timeout)
microtime(&tv0); microtime(&tv0);
if ((error = select(p, &bsa, retval))) error = select(p, &bsa, retval);
if (error) {
/*
* See fs/select.c in the Linux kernel. Without this,
* Maelstrom doesn't work.
*/
if (error == ERESTART)
error = EINTR;
return error; return error;
}
if (ls.timeout) { if (ls.timeout) {
if (!*retval) { if (!*retval) {

View File

@ -1,4 +1,4 @@
/* $NetBSD: linux_misc_notalpha.c,v 1.9 1995/06/24 20:20:26 christos Exp $ */ /* $NetBSD: linux_misc_notalpha.c,v 1.10 1995/08/13 17:51:40 mycroft Exp $ */
/* /*
* Copyright (c) 1995 Frank van der Linden * Copyright (c) 1995 Frank van der Linden
@ -772,8 +772,16 @@ linux_select(p, uap, retval)
if (ls.timeout) if (ls.timeout)
microtime(&tv0); microtime(&tv0);
if ((error = select(p, &bsa, retval))) error = select(p, &bsa, retval);
if (error) {
/*
* See fs/select.c in the Linux kernel. Without this,
* Maelstrom doesn't work.
*/
if (error == ERESTART)
error = EINTR;
return error; return error;
}
if (ls.timeout) { if (ls.timeout) {
if (!*retval) { if (!*retval) {

View File

@ -1,4 +1,4 @@
/* $NetBSD: linux_oldmmap.c,v 1.9 1995/06/24 20:20:26 christos Exp $ */ /* $NetBSD: linux_oldmmap.c,v 1.10 1995/08/13 17:51:40 mycroft Exp $ */
/* /*
* Copyright (c) 1995 Frank van der Linden * Copyright (c) 1995 Frank van der Linden
@ -772,8 +772,16 @@ linux_select(p, uap, retval)
if (ls.timeout) if (ls.timeout)
microtime(&tv0); microtime(&tv0);
if ((error = select(p, &bsa, retval))) error = select(p, &bsa, retval);
if (error) {
/*
* See fs/select.c in the Linux kernel. Without this,
* Maelstrom doesn't work.
*/
if (error == ERESTART)
error = EINTR;
return error; return error;
}
if (ls.timeout) { if (ls.timeout) {
if (!*retval) { if (!*retval) {

View File

@ -1,4 +1,4 @@
/* $NetBSD: linux_oldolduname.c,v 1.9 1995/06/24 20:20:26 christos Exp $ */ /* $NetBSD: linux_oldolduname.c,v 1.10 1995/08/13 17:51:40 mycroft Exp $ */
/* /*
* Copyright (c) 1995 Frank van der Linden * Copyright (c) 1995 Frank van der Linden
@ -772,8 +772,16 @@ linux_select(p, uap, retval)
if (ls.timeout) if (ls.timeout)
microtime(&tv0); microtime(&tv0);
if ((error = select(p, &bsa, retval))) error = select(p, &bsa, retval);
if (error) {
/*
* See fs/select.c in the Linux kernel. Without this,
* Maelstrom doesn't work.
*/
if (error == ERESTART)
error = EINTR;
return error; return error;
}
if (ls.timeout) { if (ls.timeout) {
if (!*retval) { if (!*retval) {

View File

@ -1,4 +1,4 @@
/* $NetBSD: linux_oldselect.c,v 1.9 1995/06/24 20:20:26 christos Exp $ */ /* $NetBSD: linux_oldselect.c,v 1.10 1995/08/13 17:51:40 mycroft Exp $ */
/* /*
* Copyright (c) 1995 Frank van der Linden * Copyright (c) 1995 Frank van der Linden
@ -772,8 +772,16 @@ linux_select(p, uap, retval)
if (ls.timeout) if (ls.timeout)
microtime(&tv0); microtime(&tv0);
if ((error = select(p, &bsa, retval))) error = select(p, &bsa, retval);
if (error) {
/*
* See fs/select.c in the Linux kernel. Without this,
* Maelstrom doesn't work.
*/
if (error == ERESTART)
error = EINTR;
return error; return error;
}
if (ls.timeout) { if (ls.timeout) {
if (!*retval) { if (!*retval) {

View File

@ -1,4 +1,4 @@
/* $NetBSD: linux_olduname.c,v 1.9 1995/06/24 20:20:26 christos Exp $ */ /* $NetBSD: linux_olduname.c,v 1.10 1995/08/13 17:51:40 mycroft Exp $ */
/* /*
* Copyright (c) 1995 Frank van der Linden * Copyright (c) 1995 Frank van der Linden
@ -772,8 +772,16 @@ linux_select(p, uap, retval)
if (ls.timeout) if (ls.timeout)
microtime(&tv0); microtime(&tv0);
if ((error = select(p, &bsa, retval))) error = select(p, &bsa, retval);
if (error) {
/*
* See fs/select.c in the Linux kernel. Without this,
* Maelstrom doesn't work.
*/
if (error == ERESTART)
error = EINTR;
return error; return error;
}
if (ls.timeout) { if (ls.timeout) {
if (!*retval) { if (!*retval) {

View File

@ -1,4 +1,4 @@
/* $NetBSD: linux_pipe.c,v 1.9 1995/06/24 20:20:26 christos Exp $ */ /* $NetBSD: linux_pipe.c,v 1.10 1995/08/13 17:51:40 mycroft Exp $ */
/* /*
* Copyright (c) 1995 Frank van der Linden * Copyright (c) 1995 Frank van der Linden
@ -772,8 +772,16 @@ linux_select(p, uap, retval)
if (ls.timeout) if (ls.timeout)
microtime(&tv0); microtime(&tv0);
if ((error = select(p, &bsa, retval))) error = select(p, &bsa, retval);
if (error) {
/*
* See fs/select.c in the Linux kernel. Without this,
* Maelstrom doesn't work.
*/
if (error == ERESTART)
error = EINTR;
return error; return error;
}
if (ls.timeout) { if (ls.timeout) {
if (!*retval) { if (!*retval) {

View File

@ -1,4 +1,4 @@
/* $NetBSD: linux_misc.c,v 1.9 1995/06/24 20:20:26 christos Exp $ */ /* $NetBSD: linux_misc.c,v 1.10 1995/08/13 17:51:40 mycroft Exp $ */
/* /*
* Copyright (c) 1995 Frank van der Linden * Copyright (c) 1995 Frank van der Linden
@ -772,8 +772,16 @@ linux_select(p, uap, retval)
if (ls.timeout) if (ls.timeout)
microtime(&tv0); microtime(&tv0);
if ((error = select(p, &bsa, retval))) error = select(p, &bsa, retval);
if (error) {
/*
* See fs/select.c in the Linux kernel. Without this,
* Maelstrom doesn't work.
*/
if (error == ERESTART)
error = EINTR;
return error; return error;
}
if (ls.timeout) { if (ls.timeout) {
if (!*retval) { if (!*retval) {

View File

@ -1,4 +1,4 @@
/* $NetBSD: linux_break.c,v 1.9 1995/06/24 20:20:26 christos Exp $ */ /* $NetBSD: linux_break.c,v 1.10 1995/08/13 17:51:40 mycroft Exp $ */
/* /*
* Copyright (c) 1995 Frank van der Linden * Copyright (c) 1995 Frank van der Linden
@ -772,8 +772,16 @@ linux_select(p, uap, retval)
if (ls.timeout) if (ls.timeout)
microtime(&tv0); microtime(&tv0);
if ((error = select(p, &bsa, retval))) error = select(p, &bsa, retval);
if (error) {
/*
* See fs/select.c in the Linux kernel. Without this,
* Maelstrom doesn't work.
*/
if (error == ERESTART)
error = EINTR;
return error; return error;
}
if (ls.timeout) { if (ls.timeout) {
if (!*retval) { if (!*retval) {

View File

@ -1,4 +1,4 @@
/* $NetBSD: linux_misc_notalpha.c,v 1.9 1995/06/24 20:20:26 christos Exp $ */ /* $NetBSD: linux_misc_notalpha.c,v 1.10 1995/08/13 17:51:40 mycroft Exp $ */
/* /*
* Copyright (c) 1995 Frank van der Linden * Copyright (c) 1995 Frank van der Linden
@ -772,8 +772,16 @@ linux_select(p, uap, retval)
if (ls.timeout) if (ls.timeout)
microtime(&tv0); microtime(&tv0);
if ((error = select(p, &bsa, retval))) error = select(p, &bsa, retval);
if (error) {
/*
* See fs/select.c in the Linux kernel. Without this,
* Maelstrom doesn't work.
*/
if (error == ERESTART)
error = EINTR;
return error; return error;
}
if (ls.timeout) { if (ls.timeout) {
if (!*retval) { if (!*retval) {

View File

@ -1,4 +1,4 @@
/* $NetBSD: linux_oldmmap.c,v 1.9 1995/06/24 20:20:26 christos Exp $ */ /* $NetBSD: linux_oldmmap.c,v 1.10 1995/08/13 17:51:40 mycroft Exp $ */
/* /*
* Copyright (c) 1995 Frank van der Linden * Copyright (c) 1995 Frank van der Linden
@ -772,8 +772,16 @@ linux_select(p, uap, retval)
if (ls.timeout) if (ls.timeout)
microtime(&tv0); microtime(&tv0);
if ((error = select(p, &bsa, retval))) error = select(p, &bsa, retval);
if (error) {
/*
* See fs/select.c in the Linux kernel. Without this,
* Maelstrom doesn't work.
*/
if (error == ERESTART)
error = EINTR;
return error; return error;
}
if (ls.timeout) { if (ls.timeout) {
if (!*retval) { if (!*retval) {

View File

@ -1,4 +1,4 @@
/* $NetBSD: linux_oldolduname.c,v 1.9 1995/06/24 20:20:26 christos Exp $ */ /* $NetBSD: linux_oldolduname.c,v 1.10 1995/08/13 17:51:40 mycroft Exp $ */
/* /*
* Copyright (c) 1995 Frank van der Linden * Copyright (c) 1995 Frank van der Linden
@ -772,8 +772,16 @@ linux_select(p, uap, retval)
if (ls.timeout) if (ls.timeout)
microtime(&tv0); microtime(&tv0);
if ((error = select(p, &bsa, retval))) error = select(p, &bsa, retval);
if (error) {
/*
* See fs/select.c in the Linux kernel. Without this,
* Maelstrom doesn't work.
*/
if (error == ERESTART)
error = EINTR;
return error; return error;
}
if (ls.timeout) { if (ls.timeout) {
if (!*retval) { if (!*retval) {

View File

@ -1,4 +1,4 @@
/* $NetBSD: linux_oldselect.c,v 1.9 1995/06/24 20:20:26 christos Exp $ */ /* $NetBSD: linux_oldselect.c,v 1.10 1995/08/13 17:51:40 mycroft Exp $ */
/* /*
* Copyright (c) 1995 Frank van der Linden * Copyright (c) 1995 Frank van der Linden
@ -772,8 +772,16 @@ linux_select(p, uap, retval)
if (ls.timeout) if (ls.timeout)
microtime(&tv0); microtime(&tv0);
if ((error = select(p, &bsa, retval))) error = select(p, &bsa, retval);
if (error) {
/*
* See fs/select.c in the Linux kernel. Without this,
* Maelstrom doesn't work.
*/
if (error == ERESTART)
error = EINTR;
return error; return error;
}
if (ls.timeout) { if (ls.timeout) {
if (!*retval) { if (!*retval) {

View File

@ -1,4 +1,4 @@
/* $NetBSD: linux_olduname.c,v 1.9 1995/06/24 20:20:26 christos Exp $ */ /* $NetBSD: linux_olduname.c,v 1.10 1995/08/13 17:51:40 mycroft Exp $ */
/* /*
* Copyright (c) 1995 Frank van der Linden * Copyright (c) 1995 Frank van der Linden
@ -772,8 +772,16 @@ linux_select(p, uap, retval)
if (ls.timeout) if (ls.timeout)
microtime(&tv0); microtime(&tv0);
if ((error = select(p, &bsa, retval))) error = select(p, &bsa, retval);
if (error) {
/*
* See fs/select.c in the Linux kernel. Without this,
* Maelstrom doesn't work.
*/
if (error == ERESTART)
error = EINTR;
return error; return error;
}
if (ls.timeout) { if (ls.timeout) {
if (!*retval) { if (!*retval) {

View File

@ -1,4 +1,4 @@
/* $NetBSD: linux_pipe.c,v 1.9 1995/06/24 20:20:26 christos Exp $ */ /* $NetBSD: linux_pipe.c,v 1.10 1995/08/13 17:51:40 mycroft Exp $ */
/* /*
* Copyright (c) 1995 Frank van der Linden * Copyright (c) 1995 Frank van der Linden
@ -772,8 +772,16 @@ linux_select(p, uap, retval)
if (ls.timeout) if (ls.timeout)
microtime(&tv0); microtime(&tv0);
if ((error = select(p, &bsa, retval))) error = select(p, &bsa, retval);
if (error) {
/*
* See fs/select.c in the Linux kernel. Without this,
* Maelstrom doesn't work.
*/
if (error == ERESTART)
error = EINTR;
return error; return error;
}
if (ls.timeout) { if (ls.timeout) {
if (!*retval) { if (!*retval) {