Zachariah,
> perl -le 'print join(", ",PerlIO::get_layers(\*STDIN))'
> unix, perlio
> PERLIO='' perl -le 'print join(",",PerlIO::get_layers(\*STDIN))'
> unix, perlio
> PERLIO='stdio' perl -le 'print join(",",PerlIO::get_layers(\*STDIN))'
> stdio
> PERLIO='perlio' perl -le 'print join(",",PerlIO::get_layers(\*STDIN))'
> unix, perlio
> unset PERLIO; perl -le 'print join(",",PerlIO::get_layers(\*STDIN))'
> unix, perlio
Ok.
> echo "test"|PERLIO="stdio" perl -e '$!=0; while(<>){print}; $!==0 or die
> "Err: $!"'
> test
> Err: Bad file descriptor at -e line 1, <> line 1.
> echo "test"|PERLIO="perlio" perl -e '$!=0; while(<>){print}; $!==0 or die
> "Err: $!"'
> test
> echo "test"|PERLIO="unix" perl -e '$!=0; while(<>){print}; $!==0 or die
> "Err: $!"'
> test
> echo "test"|PERLIO="" perl -e '$!=0; while(<>){print}; $!==0 or die "Err:
> $!"'
> test
Good, so it seems you are fine as long as you do not set PERLIO to "stdio".
> Dec 12 18:52:54 mail amavisd-new[10954]: (08229-10) run_command: child
> process [10954] faled to exec /usr/bin/file
> /var/lib/amavis/amavis-20061212T185254-08229/parts/part-00001: an't close
> main::stdin: Bad file descriptor at /usr/sbin/amavisd-new line 1131,
> <GEN56> lne 1353.
> Last night after a long overdue update to my Debian Sarge system, my
> Amavis install went on the fritz (amavisd-new-20030616-p10).
Perhaps your problem is not with PerlIO, but with an upgraded
module Net::Server and not upgraded amavisd-new.
Mark
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
AMaViS-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/