Re: /usr/bin/script eating 100% cpu with portupgrade and xargs

2011-10-22 Thread Chris Rees
On 14 Oct 2011 21:50, "Stefan Bethke" wrote: > > > Am 14.10.2011 um 14:03 schrieb Jilles Tjoelker: > > > 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 ca

Re: /usr/bin/script eating 100% cpu with portupgrade and xargs

2011-10-22 Thread Adrian Wontroba
On Sat, Oct 15, 2011 at 10:45:18PM +0300, Mikolaj Golub wrote: > On Sat, 15 Oct 2011 11:50:22 +0200 Stefan Bethke wrote: > SB> Seems to do the trick, thanks! > Thanks for testing! Committed. I am going to MFC it soon. Gentlemen, thank you! I can confirm that at $JOB with a RELENG_8 system post t

Re: /usr/bin/script eating 100% cpu with portupgrade and xargs

2011-10-15 Thread Mikolaj Golub
On Sat, 15 Oct 2011 11:50:22 +0200 Stefan Bethke wrote: SB> Am 15.10.2011 um 09:36 schrieb Mikolaj Golub: >> >> On Fri, 14 Oct 2011 22:50:32 +0200 Stefan Bethke wrote: >> >> SB> I finally figured out why my ports aren't updating anymore: when >> running portupgrade -a --batch from cron,

Re: /usr/bin/script eating 100% cpu with portupgrade and xargs

2011-10-15 Thread Stefan Bethke
Am 15.10.2011 um 09:36 schrieb Mikolaj Golub: > > On Fri, 14 Oct 2011 22:50:32 +0200 Stefan Bethke wrote: > > SB> I finally figured out why my ports aren't updating anymore: when running > portupgrade -a --batch from cron, stdin is /dev/null, and that produces the > gobs of ^D in the output, a

Re: /usr/bin/script eating 100% cpu with portupgrade and xargs

2011-10-15 Thread Mikolaj Golub
On Fri, 14 Oct 2011 22:50:32 +0200 Stefan Bethke wrote: SB> I finally figured out why my ports aren't updating anymore: when running portupgrade -a --batch from cron, stdin is /dev/null, and that produces the gobs of ^D in the output, as well as the script file that portupgrade creates. What

Re: /usr/bin/script eating 100% cpu with portupgrade and xargs

2011-10-15 Thread Mikolaj Golub
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 T

Re: /usr/bin/script eating 100% cpu with portupgrade and xargs

2011-10-15 Thread Mikolaj Golub
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 r

Re: /usr/bin/script eating 100% cpu with portupgrade and xargs

2011-10-14 Thread Stefan Bethke
Am 14.10.2011 um 14:03 schrieb Jilles Tjoelker: > 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

Re: /usr/bin/script eating 100% cpu with portupgrade and xargs

2011-10-14 Thread Jilles Tjoelker
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 re

Re: /usr/bin/script eating 100% cpu with portupgrade and xargs

2011-10-12 Thread Adrian Wontroba
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 portmaste

Re: /usr/bin/script eating 100% cpu with portupgrade and xargs

2011-10-07 Thread Adrian Wontroba
On Tue, Oct 04, 2011 at 02:15:24PM +0300, Mikolaj Golub wrote: > For the record. The issue has been fixed in CURRENT and the fix has > been merged to STABLE. At $JOB with a recent version of RELENG_8 and the new script (1.24.30.5 2011/10/04 11:08:31 trociny) I am getting hangs (system close to idl

Re: /usr/bin/script eating 100% cpu with portupgrade and xargs

2011-10-06 Thread Mikolaj Golub
On Tue, 04 Oct 2011 18:34:07 +0200 Michiel Boland wrote: MB> On 10/04/2011 13:15, Mikolaj Golub wrote: >> On Sun, Sep 18, 2011 at 1:58 PM, Mikolaj Golub wrote: MB> [...] >>> >>> I believe the behaviour is after this commit: >>> >>> http://svnweb.freebsd.org/base?view=revision&revision=125

Re: /usr/bin/script eating 100% cpu with portupgrade and xargs

2011-10-04 Thread Ronald Klop
On Tue, 04 Oct 2011 13:15:24 +0200, Mikolaj Golub wrote: On Sun, Sep 18, 2011 at 1:58 PM, Mikolaj Golub wrote: On Sun, 18 Sep 2011 08:47:13 +0200 Ronald Klop wrote: RK> On Sun, 18 Sep 2011 07:39:01 +0200, Jeremy Chadwick RK> wrote: >> On Sun, Sep 18, 2011 at 12:54:13AM -0400, Jason

Re: /usr/bin/script eating 100% cpu with portupgrade and xargs

2011-10-04 Thread Michiel Boland
On 10/04/2011 13:15, Mikolaj Golub wrote: On Sun, Sep 18, 2011 at 1:58 PM, Mikolaj Golub wrote: [...] I believe the behaviour is after this commit: http://svnweb.freebsd.org/base?view=revision&revision=125848 I think we should skip select on STDIN after reading EOF from it, like in the patc

Re: /usr/bin/script eating 100% cpu with portupgrade and xargs

2011-10-04 Thread Mikolaj Golub
On Sun, Sep 18, 2011 at 1:58 PM, Mikolaj Golub wrote: > > On Sun, 18 Sep 2011 08:47:13 +0200 Ronald Klop wrote: > >  RK> On Sun, 18 Sep 2011 07:39:01 +0200, Jeremy Chadwick >  RK> wrote: > >  >> On Sun, Sep 18, 2011 at 12:54:13AM -0400, Jason Hellenthal wrote: >  >>> On Sun, Sep 18, 2011 at 01:49

Re: /usr/bin/script eating 100% cpu with portupgrade and xargs

2011-09-18 Thread Chris Torek
On Sep 18, 2011 11:25 AM, "Kostik Belousov" wrote: > Please note that interpreting the receiving of 0 bytes on the terminal > as EOF is only a convention. If done absolutely properly, script shall > not interpret zero-byte read as EOF. Might be, the reasonable thing to > do would be to only look a

Re: /usr/bin/script eating 100% cpu with portupgrade and xargs

2011-09-18 Thread Kostik Belousov
On Sun, Sep 18, 2011 at 11:57:57PM +0300, Mikolaj Golub wrote: > > On Sun, 18 Sep 2011 20:24:23 +0300 Kostik Belousov wrote: > > KB> On Sun, Sep 18, 2011 at 02:54:34PM +0300, Mikolaj Golub wrote: > >> > >> On Sun, 18 Sep 2011 13:25:26 +0200 Ronald Klop wrote: > >> > >> RK> It is a while s

Re: /usr/bin/script eating 100% cpu with portupgrade and xargs

2011-09-18 Thread Mikolaj Golub
On Sun, 18 Sep 2011 20:24:23 +0300 Kostik Belousov wrote: KB> On Sun, Sep 18, 2011 at 02:54:34PM +0300, Mikolaj Golub wrote: >> >> On Sun, 18 Sep 2011 13:25:26 +0200 Ronald Klop wrote: >> >> RK> It is a while since I programmed C, but why will writing 0 bytes give >> RK> the reader an e

Re: /usr/bin/script eating 100% cpu with portupgrade and xargs

2011-09-18 Thread Kostik Belousov
On Sun, Sep 18, 2011 at 02:54:34PM +0300, Mikolaj Golub wrote: > > On Sun, 18 Sep 2011 13:25:26 +0200 Ronald Klop wrote: > > RK> It is a while since I programmed C, but why will writing 0 bytes give > RK> the reader an end-of-file? Shouldn't the fd be closed to indicate > RK> end-of-file? > >

Re: /usr/bin/script eating 100% cpu with portupgrade and xargs

2011-09-18 Thread Mikolaj Golub
On Sun, 18 Sep 2011 13:25:26 +0200 Ronald Klop wrote: RK> It is a while since I programmed C, but why will writing 0 bytes give RK> the reader an end-of-file? Shouldn't the fd be closed to indicate RK> end-of-file? AFAIR, this trick with writing 0 to emulate EOF because we can't close the fd

Re: /usr/bin/script eating 100% cpu with portupgrade and xargs

2011-09-18 Thread Mikolaj Golub
On Sun, 18 Sep 2011 08:47:13 +0200 Ronald Klop wrote: RK> On Sun, 18 Sep 2011 07:39:01 +0200, Jeremy Chadwick RK> wrote: >> On Sun, Sep 18, 2011 at 12:54:13AM -0400, Jason Hellenthal wrote: >>> On Sun, Sep 18, 2011 at 01:49:15AM +0200, Ronald Klop wrote: >>> > Hi, >>> > >>> > I'm running

Re: /usr/bin/script eating 100% cpu with portupgrade and xargs

2011-09-18 Thread Ronald Klop
On Sun, 18 Sep 2011 12:58:32 +0200, Mikolaj Golub wrote: On Sun, 18 Sep 2011 08:47:13 +0200 Ronald Klop wrote: RK> On Sun, 18 Sep 2011 07:39:01 +0200, Jeremy Chadwick RK> wrote: >> On Sun, Sep 18, 2011 at 12:54:13AM -0400, Jason Hellenthal wrote: >>> On Sun, Sep 18, 2011 at 01:49:15AM

Re: /usr/bin/script eating 100% cpu with portupgrade and xargs

2011-09-18 Thread Jeremy Chadwick
On Sun, Sep 18, 2011 at 08:47:13AM +0200, Ronald Klop wrote: > On Sun, 18 Sep 2011 07:39:01 +0200, Jeremy Chadwick > wrote: > > >On Sun, Sep 18, 2011 at 12:54:13AM -0400, Jason Hellenthal wrote: > >>On Sun, Sep 18, 2011 at 01:49:15AM +0200, Ronald Klop wrote: > >>> Hi, > >>> > >>> I'm running por

Re: /usr/bin/script eating 100% cpu with portupgrade and xargs

2011-09-17 Thread Ronald Klop
On Sun, 18 Sep 2011 07:39:01 +0200, Jeremy Chadwick wrote: On Sun, Sep 18, 2011 at 12:54:13AM -0400, Jason Hellenthal wrote: On Sun, Sep 18, 2011 at 01:49:15AM +0200, Ronald Klop wrote: > Hi, > > I'm running portupgrade in screen to update all the ports for > 9-BETA2/9-CURRENT on amd64. Whil

Re: /usr/bin/script eating 100% cpu with portupgrade and xargs

2011-09-17 Thread Jeremy Chadwick
On Sun, Sep 18, 2011 at 12:54:13AM -0400, Jason Hellenthal wrote: > On Sun, Sep 18, 2011 at 01:49:15AM +0200, Ronald Klop wrote: > > Hi, > > > > I'm running portupgrade in screen to update all the ports for > > 9-BETA2/9-CURRENT on amd64. While doing this script eats 100% cpu. > > Because portup