You mean this:
- avoid problematic perl constructs open('|-') and open('-|') which fail
  to catch certain fork errors, or waits indefinitely when resources
  are tight; just explicitly create a pipe and call fork in subroutines
  run_command, run_command_consumer and in run_as_subprocess. The change
  possibly also solves some mystery cases where amavisd would appear
  to hang when resources are tight (running out of swap space or near a
  maxprocesses limit) instead of reporting a fork failure. Problem with
  fork failing without giving a reason for failure reported by Uwe Kiewel;


I realiza that If i put:
vm.swappiness = 0
Error does not seems to be present, yet.
On Tuesday 09 December 2008 05:41:36 Mark Martinec wrote:
> Luis,
>
> > Using CAT (language pluging) I got this:
> >
> > Dec  8 20:07:04 soekris amavis[24051]: (24051-06) (!!)TROUBLE in
> > check_mail: parts_decode_ext FAILED: file(1) utility (/usr/bin/file)
> > error: run_command (open pipe): Can't fork at
> > /usr/lib/perl5/5.10.0/i386-linux-thread- multi/IO/File.pm line 188. at
> > /usr/sbin/amavisd line 2873.
> >
> > Under
> > Mandriva 2009.0
> > Amavis 2.6.2
> > Spamassassin 3.2.5
> >
> > is it a bug?
>
> It looks like you are running amavisd-new-2.6.1, not 2.6.2.
>
> There are a couple of reasons why fork can fail, the usual one
> is a shortage on swap space. Increase swap space, of reduce
> the number of amavisd child processes.
>
> Out of curiosity, I'd be interested how 2.6.2 (-rc2) fares in the same
> environment - code dealing with forking and pipe creation has been
> revised, so you'd hopefully get a more informative failure reason.
>
>   Mark
>
> ---------------------------------------------------------------------------
>--- SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas,
> Nevada. The future of the web can't happen without you.  Join us at MIX09
> to help pave the way to the Next Web now. Learn more and register at
> http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com
>/ _______________________________________________
> 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/




------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
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/ 

Reply via email to