소스 검색

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) {