httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jacek Prucia <>
Subject Re: [PATCH] make apxs -q work again
Date Wed, 07 Aug 2002 16:44:03 GMT
On Wed, 7 Aug 2002 08:28:15 -0700
"Ryan Bloom" <> wrote:

> > From: Thom May []
> > The reason for the patch is that trying to do `apxs -q CC` on the
> command
> > line under some circumstances doesn't appear to return anything, due
> to
> > the
> > lack of the new line.
> I had this same problem a couple of months ago.  I solved it on my
> machine by using echo on the command line when I wanted to use 'apxs
> -q'.  But, it did take a long time to find the problem.

Hmmm... this problem looks like it is related to the fact that perl has
line buffered output. Since apxs doesn't seem to be performance critical
software, we could set autoflush at the beginning like this:

$| = 1;

According to perlvar manpage, this is just the way if you have problems
with output under some shells. Sure... it'll make apxs a bit slower, but
this seems to be a fair trade off.

just my $cents = 2;

Jacek Prucia S.A.

View raw message