From owner-freebsd-bugs@FreeBSD.ORG Sun May 11 00:50:21 2003 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 16D5537B401 for ; Sun, 11 May 2003 00:50:21 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id ACF0A43FE3 for ; Sun, 11 May 2003 00:50:20 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.9/8.12.9) with ESMTP id h4B7oJUp020376 for ; Sun, 11 May 2003 00:50:19 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.9/8.12.9/Submit) id h4B7oI5g020367; Sun, 11 May 2003 00:50:19 -0700 (PDT) Date: Sun, 11 May 2003 00:50:19 -0700 (PDT) Message-Id: <200305110750.h4B7oI5g020367@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: Philipp Mergenthaler Subject: Re: kern/23173: read hangs in linux emulation X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Philipp Mergenthaler List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 May 2003 07:50:21 -0000 The following reply was made to PR kern/23173; it has been noted by GNATS. From: Philipp Mergenthaler To: freebsd-gnats-submit@FreeBSD.org Cc: Subject: Re: kern/23173: read hangs in linux emulation Date: Sun, 11 May 2003 09:47:21 +0200 I can confirm that this bug still exists in -current as of 2003-05-11 and that the patch by Boris Nikolaus fixes it. It doesn't apply cleanly to -current anymore, though. Below is an updated version. Bye, Philipp Index: linux_ioctl.c =================================================================== RCS file: /ncvs/src/sys/compat/linux/linux_ioctl.c,v retrieving revision 1.107 diff -u -r1.107 linux_ioctl.c --- linux_ioctl.c 24 Apr 2003 23:36:35 -0000 1.107 +++ linux_ioctl.c 11 May 2003 07:06:50 -0000 @@ -345,7 +345,8 @@ lios->c_cc[LINUX_VLNEXT] = bios->c_cc[VLNEXT]; for (i=0; ic_cc[i] == _POSIX_VDISABLE) + if (i != LINUX_VMIN && i != LINUX_VTIME && + lios->c_cc[i] == _POSIX_VDISABLE) lios->c_cc[i] = LINUX_POSIX_VDISABLE; } lios->c_line = 0; @@ -484,7 +485,8 @@ bios->c_cc[VLNEXT] = lios->c_cc[LINUX_VLNEXT]; for (i=0; ic_cc[i] == LINUX_POSIX_VDISABLE) + if (i != VMIN && i != VTIME && + bios->c_cc[i] == LINUX_POSIX_VDISABLE) bios->c_cc[i] = _POSIX_VDISABLE; }