[Mimedefang] FreeBSD patch for 2.15
Adam Beatham
adam at backboard.org
Mon Jun 17 14:18:45 EDT 2002
At 09:15 PM 6/14/2002 -0400, you wrote:
Ran the patch on my machine, which is OpenBSD. Compiled and ran fine.. but
I'm getting these now...
Jun 17 14:13:03 goblin mimedefang-multiplexor: setrlimit(RLIMIT_RSS,
4294966272) failed: Operation not permitted
Jun 17 14:13:03 goblin mimedefang-multiplexor: setrlimit(RLIMIT_DATA,
4294966272) failed: Operation not permitted
>Hi,
>
>This patch against 2.15 should fix compilation problems on FreeBSD.
>
>Regards,
>
>David.
>
>*** mimedefang-2.15/mimedefang-multiplexor.c Fri Jun 14 13:08:24 2002
>--- mimedefang-2.15-patch1/mimedefang-multiplexor.c Fri Jun 14
>21:13:33 2002
>***************
>*** 13,19 ****
> ***********************************************************************/
>
> static char const RCSID[] =
>! "$Id: mimedefang-multiplexor.c,v 1.71 2002/06/14 17:08:24 dfs Exp $";
>
> #include "config.h"
> #include "event_tcp.h"
>--- 13,19 ----
> ***********************************************************************/
>
> static char const RCSID[] =
>! "$Id: mimedefang-multiplexor.c,v 1.72 2002/06/15 01:12:25 dfs Exp $";
>
> #include "config.h"
> #include "event_tcp.h"
>***************
>*** 1989,1999 ****
>--- 1989,2010 ----
> as *= 1024;
> lim.rlim_cur = as;
> lim.rlim_max = as;
>+ #ifdef RLIMIT_AS
> n = setrlimit(RLIMIT_AS, &lim);
> if (n < 0) {
> syslog(LOG_WARNING, "setrlimit(RLIMIT_AS, %lu) failed: %m",
> as);
> }
>+ #endif
>+
>+ #ifdef RLIMIT_DATA
>+ n = setrlimit(RLIMIT_DATA, &lim);
>+ if (n < 0) {
>+ syslog(LOG_WARNING, "setrlimit(RLIMIT_DATA, %lu) failed: %m",
>+ as);
>+ }
>+ #endif
>+
> }
> }
>
>
>_______________________________________________
>MIMEDefang mailing list
>MIMEDefang at lists.roaringpenguin.com
>http://lists.roaringpenguin.com/mailman/listinfo/mimedefang
-adam, the guy behind the guy behind the guy
More information about the MIMEDefang
mailing list