/usr/bin/script eating 100% cpu with portupgrade and xargs
trociny at freebsd.org
Sat Oct 15 07:25:25 UTC 2011
On Wed, 12 Oct 2011 23:25:35 +0100 Adrian Wontroba wrote:
AW> 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.
AW> So far I have been unable to reproduce the problem with portupgrade (and
AW> will probably move to portmaster).
AW> I have however found a different but possibly related problem with the
AW> new version of script in RELENG_8, for which I have raised this PR:
AW> misc/161526: script outputs corrupt if input is not from a terminal
As Jilles wrote ^D\b\b are echoed by the terminal when the script sends VEOF
to the program being script.
In my recent commit r225809 the intention was to sent VEOF only once if STDIN
was not terminal. Unfortunately the fix was incorrect and for flushtime > 0 it
keeps sending VEOF. That is why you are observing series of ^D\b\b characters.
I am going to commit the attached patch to HEAD, that fixes this. But we will
still have one ^D\b\b in the output.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 690 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20111015/db3c0cad/script.c.4.bin
More information about the freebsd-stable