Bug#486069: perl: embedding perl hangs on hppa without PERL_SYS_INIT3() since 5.10.0

Russ Allbery rra at stanford.edu
Mon Jun 30 01:12:30 UTC 2008

Julien ÉLIE <julien at trigofacile.com> writes:

> You're quite right!
> I have just read there (_Advanced Perl programming_, O'Reilly):
>    http://www.unix.com.ua/orelly/perl/advprog/ch19_03.htm
> %%
> It so happens that perl_parse does some crucial initializations, so we
> have to call it.  [In fact, perl_parse should be called at most once,
> because it reinitializes the interpreter without checking that it has
> already been done.]  If we give it a null argc/argv array, it has the
> unfortunate property of waiting on standard input, as you normally
> expect Perl to do.  For this reason, we give it the shortest possible
> script that compiles cleanly and doesn't take any time to finish, as
> shown in the following command line:
>    perl -e 0
> %%

Aha!  Very good catch.

Russ Allbery (rra at stanford.edu)             <http://www.eyrie.org/~eagle/>

    Please send questions to the list rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.

More information about the inn-workers mailing list