File: embperl.patch

package info (click to toggle)
mimedefang 3.6-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,836 kB
  • sloc: ansic: 9,495; perl: 8,286; sh: 2,451; tcl: 693; makefile: 74; sql: 30; php: 20
file content (18 lines) | stat: -rw-r--r-- 584 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--- a/embperl.c
+++ b/embperl.c
@@ -89,6 +89,15 @@ make_embedded_interpreter(char const *pr
 	perl_destruct(my_perl);
 	perl_free(my_perl);
 	my_perl = NULL;
+#ifdef PERL_SET_CONTEXT
+	PERL_SET_CONTEXT(NULL);
+#endif
+/* The next line should NOT be necessary, but perl 5.10 appears to have
+   a bug as described at http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=516913
+*/
+#ifdef PERL_SET_INTERP
+	PERL_SET_INTERP(NULL);
+#endif
 #else
 	syslog(LOG_WARNING, "Cannot destroy and recreate a Perl interpreter safely on this platform.  Filter rules will NOT be reread.");
 	return 0;