From 90afc54ee8cf755a7309765b439970409b91fb1a Mon Sep 17 00:00:00 2001 From: tg Date: Wed, 9 Nov 2011 22:17:26 +0000 Subject: [PATCH] =?UTF-8?q?=E2=80=A2=20select(0,=20=E2=80=A6)=20misbehaves?= =?UTF-8?q?=20on=20Interix=20(by=20Markus=20Duft=20)=20?= =?UTF-8?q?=E2=80=A2=20select(n,=20NULL,=20NULL,=20NULL,=20=E2=80=A6)=20be?= =?UTF-8?q?haves=20the=20same=20(by=20Bruno=20Haible)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- check.t | 4 ++-- funcs.c | 4 ++-- sh.h | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/check.t b/check.t index 98274ca..e560d7f 100644 --- a/check.t +++ b/check.t @@ -1,4 +1,4 @@ -# $MirOS: src/bin/mksh/check.t,v 1.488 2011/11/08 23:10:58 tg Exp $ +# $MirOS: src/bin/mksh/check.t,v 1.489 2011/11/09 22:17:23 tg Exp $ # $OpenBSD: bksl-nl.t,v 1.2 2001/01/28 23:04:56 niklas Exp $ # $OpenBSD: history.t,v 1.5 2001/01/28 23:04:56 niklas Exp $ # $OpenBSD: read.t,v 1.3 2003/03/10 03:48:16 david Exp $ @@ -25,7 +25,7 @@ # http://www.research.att.com/~gsf/public/ifs.sh expected-stdout: - @(#)MIRBSD KSH R40 2011/11/07 + @(#)MIRBSD KSH R40 2011/11/09 description: Check version of shell. stdin: diff --git a/funcs.c b/funcs.c index 23f45de..8f6cbcb 100644 --- a/funcs.c +++ b/funcs.c @@ -38,7 +38,7 @@ #endif #endif -__RCSID("$MirOS: src/bin/mksh/funcs.c,v 1.197 2011/09/07 15:24:15 tg Exp $"); +__RCSID("$MirOS: src/bin/mksh/funcs.c,v 1.198 2011/11/09 22:17:25 tg Exp $"); #if HAVE_KILLPG /* @@ -3646,7 +3646,7 @@ c_sleep(const char **wp) /* block SIGCHLD from interrupting us, though */ sigprocmask(SIG_BLOCK, &sm_sigchld, &omask); #endif - if (select(0, NULL, NULL, NULL, &tv) == 0 || errno == EINTR) + if (select(1, NULL, NULL, NULL, &tv) == 0 || errno == EINTR) /* * strictly speaking only for SIGALRM, but the * execution may be interrupted by other signals diff --git a/sh.h b/sh.h index c1bea54..722ba8d 100644 --- a/sh.h +++ b/sh.h @@ -151,9 +151,9 @@ #endif #ifdef EXTERN -__RCSID("$MirOS: src/bin/mksh/sh.h,v 1.500 2011/11/08 22:07:14 tg Exp $"); +__RCSID("$MirOS: src/bin/mksh/sh.h,v 1.501 2011/11/09 22:17:26 tg Exp $"); #endif -#define MKSH_VERSION "R40 2011/11/07" +#define MKSH_VERSION "R40 2011/11/09" #ifndef MKSH_INCLUDES_ONLY