List Info

Thread: Bad file descriptor




Bad file descriptor
user name
2006-03-28 15:19:22
Mark Martinec wrote:
> Bowie,
> 
> > I am seeing this error in my logs and it is not
calling ClamAV for
> > processing. run_command: child process [21925]:
Error closing
> > main::stdin: Bad file descriptor at
> > /etc/courier/filters/active/amavisd line 1876. 
> > 
> > I read a previous thread that indicated that this
is a problem
> > with Net::Server v0.91.  The workaround was to
remove the error
> > check from line 1876.  It was also indicated that
the problem
> > would be resolved in Net::Server v0.92. 
> > 
> > I am currently running Net::Server v0.93.  Does
the same problem
> > still exist?  Is removing the error check still a
recommended
> > workaround, or should I remove Net::Server and
drop back to v0.90?
> 
> To be on the safe side, use Net::Server 0.90 (or
earlier) with
> amavisd-new-2.3.3 or earlier versions.
> 
> The following patch to 2.3.3 seems to get it working
with
> Net::Server 0.93 (but not with 0.91 or 0.92).  (the
patch does not
> break compatibility with 0.90) 
> 
> --- amavisd~	Tue Mar 28 00:21:57 2006
> +++ amavisd	Tue Mar 28 01:03:16 2006
>  -1871,3 +1871,3 
>        close(STDIN)       or die "Error closing
STDIN: $!";
> -      close(main::stdin) or die "Error closing
main::stdin: $!";
> +      close(main::stdin);
>        open(STDIN, "<$stdin_from")
>  -1930,3 +1930,3 
>        close(main::stdout) or die "Error closing
main::stdout: $!";
> -      close(main::STDOUT) or die "Error closing
main::STDOUT: $!";
> +      close(main::STDOUT);
>        open(STDOUT, ">$stdout_to")
>  -9072,2 +9072,3 
>      no_close_by_child => 1,
> +    no_client_stdout => 1,
> 
> 
> Or switch to 2.4.0-rc5:
>   http://www.ijs.si/software/amavisd/amavisd-new-2.
4.0-rc5.tar.gz
> which should work with any (reasonably recent) version
of Net::Server.

I installed the patch and hopefully, it will fix the problem
for me.

Also, since I have the Courier patch installed already, this
patch
didn't install cleanly.  The third change was put in the
wrong place.
With the Courier patch installed, that last change should be
at line
9136.

-- 
Bowie


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking
scripting language
that extends applications into web and mobile media. Attend
the live webcast
and join the prime developer group breaking into this new
coding territory!
http://sel.as-us.falkag.net/
sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
AMaViS-user mailing list
AMaViS-userlists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user

AMaViS-FAQ:http://www.amav
is.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/ho
wto/
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )