Re: [PATCH] fmt-merge-msg: avoid open "-|" list form for Perl 5.6
- From
Alex Riesen <raa.lkml@gmail.com>
- Date
- Feb 21, 2006, 22:04 UTC
- Message-ID
- <20060221220454.GB5948@steel.home>
- In-Reply-To
- <20060221205618.GA23920@localdomain>
Eric Wong, Tue, Feb 21, 2006 21:56:18 +0100:
Show 12 quoted lines
> > > * Eric, thanks for the hint. I have this four-patch series. > > > Could people with perl 5.6 please check them? > > > > Does not work here (ActiveState Build 811, Perl 5.8.6): > > > > $ perl -e 'open(F, "-|")' > > '-' is not recognized as an internal or external command, > > operable program or batch file. > > Both "-|" and "|-" forms of open() use fork() internally. Iirc, fork() > doesn't work too well on that platform. >
AFAICS, it does not exist. There is emulation of it in that active-perl, though so this works:
if ( !fork ) { something }but not "too well" (you have to be carefule not spawn too many (which is around 50) processes. Perl'll crash otherwise).