Date: Sat, 15 Oct 2011 10:31:06 +0300 From: Mikolaj Golub <trociny@freebsd.org> To: Jilles Tjoelker <jilles@stack.nl> Cc: Kostik Belousov <kib@FreeBSD.org>, "freebsd-stable@freebsd.org" <freebsd-stable@freebsd.org> Subject: Re: /usr/bin/script eating 100% cpu with portupgrade and xargs Message-ID: <86vcrqk8xx.fsf@kopusha.home.net> In-Reply-To: <20111014120336.GB31718@stack.nl> (Jilles Tjoelker's message of "Fri, 14 Oct 2011 14:03:37 %2B0200") References: <op.v1y8gdtf8527sy@pinky> <20110918045413.GA63773@DataIX.net> <20110918053901.GA31617@icarus.home.lan> <op.v1zrszht8527sy@pinky> <86d3eydsmf.fsf@kopusha.home.net> <CAOnPXZ9z2MoZ7uxyUQzBx3Lz1mhY-2JKxO0mepzMp81J4WEVtw@mail.gmail.com> <20111008002707.GA76128@swelter.hanley.stade.co.uk> <20111012222535.GB79291@swelter.hanley.stade.co.uk> <20111014120336.GB31718@stack.nl>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 14 Oct 2011 14:03:37 +0200 Jilles Tjoelker wrote: JT> On Wed, Oct 12, 2011 at 11:25:35PM +0100, Adrian Wontroba wrote: >> On Sat, Oct 08, 2011 at 01:27:07AM +0100, Adrian Wontroba wrote: >> > I won't be in a position to create a simpler test case, raise a PR or >> > try patches till Tuesday evening (UK) at the earliest. >> So far I have been unable to reproduce the problem with portupgrade (and >> will probably move to portmaster). >> I have however found a different but possibly related problem with the >> new version of script in RELENG_8, for which I have raised this PR: >> misc/161526: script outputs corrupt if input is not from a terminal >> Blast, should of course been bin/ JT> The extra ^D\b\b are the EOF character being echoed. These EOF JT> characters are being generated by the new script(1) to pass through the JT> EOF condition on stdin. JT> One fix would be to change the termios settings temporarily to disable JT> the echoing but this may cause problems if the application is changing JT> termios settings concurrently and generally feels bad. JT> It may be best to remove writing EOF characters, perhaps adding an JT> option to enable it again if there is a concrete use case for it. Without passing EOF to the to the program being scripted the following command will hang forever: echo 1 |script /tmp/script.out cat -- Mikolaj Golub
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86vcrqk8xx.fsf>