Skip to content
This repository
Browse code

Flush all the filehandles when "destroying" the p5 interpreter.

  • Loading branch information...
commit 5e23fcdb4b3c985e3d9295dcd46a2e7bfbba2dce 1 parent 816e8f4
Pawel Murias authored

Showing 1 changed file with 2 additions and 1 deletion. Show diff stats Hide diff stats

  1. 3  lib/p5embed.c
3  lib/p5embed.c
@@ -40,11 +40,12 @@ SV* p5embed_eval(char* code) {
40 40
 void p5embed_dispose()
41 41
 {
42 42
   /* Disable temorarly as it seems to cause segfaults */
43  
-  /* 
  43
+  /*
44 44
   perl_destruct(my_perl);
45 45
   perl_free(my_perl);
46 46
   PERL_SYS_TERM();
47 47
   */
  48
+  PerlIO_flush(NULL);
48 49
 }
49 50
 
50 51
 

0 notes on commit 5e23fcd

Please sign in to comment.
Something went wrong with that request. Please try again.