瀏覽代碼

app_perl: set G_EVAL flag when executing perl_destroy_func

- trap use of die in the perl libs to avoid having an exit when
reset_cycles is used
Daniel-Constantin Mierla 6 年之前
父節點
當前提交
9490ec06d3
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/modules/app_perl/app_perl_mod.c

+ 1 - 1
src/modules/app_perl/app_perl_mod.c

@@ -401,7 +401,7 @@ int app_perl_reset_interpreter(void)
 		return 0;
 
 	if(perl_destroy_func)
-		call_argv(perl_destroy_func, G_DISCARD | G_NOARGS, args);
+		call_argv(perl_destroy_func, G_DISCARD | G_NOARGS | G_EVAL, args);
 
 	gettimeofday(&t1, NULL);
 	if (perl_reload()<0) {