From owner-freebsd-hackers@FreeBSD.ORG Sun Feb 24 19:07:23 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 64F0116A408 for ; Sun, 24 Feb 2008 19:07:23 +0000 (UTC) (envelope-from xorquewasp@googlemail.com) Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.183]) by mx1.freebsd.org (Postfix) with ESMTP id 2A5BB13C457 for ; Sun, 24 Feb 2008 19:07:22 +0000 (UTC) (envelope-from xorquewasp@googlemail.com) Received: by wa-out-1112.google.com with SMTP id k17so1423101waf.3 for ; Sun, 24 Feb 2008 11:07:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; bh=9FQYRISEXTda7j3DVOZgYM4hQMAbWvKX+ObdZ28Ovv4=; b=g6u04nOgbIHptKdTbLz/v8vd0EDarai2wONnr8FQ6qAaThxt9DR++0k8kClJ25DJTjHlAGkLZH3KfMUfR+U8Dn1Hfb60mZbJIwj8XWk5kck2XiKAlMdbHQaRUWLXlU99L6KhunptDKYLsAR5HnjzIGRU47NW0FLcCFLopu29hWk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=OUi+GG6ZeAOPKtB3MLU6CNc8+Pt07GsYEQdsxcU77aaGOLWzeS0ScSjwYPI2tyDnw6Mxb9G8HXeM3zuFRlAnWCHlkLz1C0bTj1IWvVaUiqxUgXYpLvLj0gfAXIHO6WAlwcLmVVzZhnhxV/Ly0FUCT4BSZscRaoyK7c6pHhMMyR4= Received: by 10.114.121.1 with SMTP id t1mr2288949wac.55.1203878521186; Sun, 24 Feb 2008 10:42:01 -0800 (PST) Received: by 10.115.33.6 with HTTP; Sun, 24 Feb 2008 10:42:01 -0800 (PST) Message-ID: <5a08be760802241042x2cd93d63of5787a744e745fe5@mail.gmail.com> Date: Sun, 24 Feb 2008 19:42:01 +0100 From: "cali clarke" To: freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: Anybody have a patch for pdksh derivatives, for jails? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 Feb 2008 19:07:23 -0000 Hi. pdksh and derivatives (openbsd ksh, mirbsd mksh etc) all have the same "bug" with regards to jails. On all of my systems, trying to start *ksh in a jail results in a message that /dev/tty could not be opened (device busy) and that the shell will not have job control. For some reason, this makes pretty much any curses or screen editor fail to run. Note that also, this problem does NOT occur if you use ssh to enter the jail as I believe ssh handles tty allocation in advance. I wondered if anybody had patched their *ksh to workaround this problem? I've had a look at the sources myself and... ugh. The insides of a unix shell are not something I particularly want to spend much time examining...