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: CARP interfaces and mastership issue

2011-09-18 Thread Damien Fleuriot
On 18 Sep 2011, at 12:44, Patrick Lamaiziere wrote: > Le Sat, 17 Sep 2011 23:40:06 -0400 (EDT), > "Brian Seklecki (Mobile)" a écrit : > >>> What would help here, is for a carp interface to wait a given delay (tunable through a sysctl ?) after creation or after being brought up

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: CARP interfaces and mastership issue

2011-09-18 Thread Patrick Lamaiziere
Le Sat, 17 Sep 2011 23:40:06 -0400 (EDT), "Brian Seklecki (Mobile)" a écrit : > > > >> What would help here, is for a carp interface to wait a given delay > >> (tunable through a sysctl ?) after creation or after being brought > >> up > > I see now. > > The tunable sounds like a good idea; we s

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