]> git.vpit.fr Git - perl/modules/Thread-Cleanup.git/blobdiff - Cleanup.xs
Kwalitee test overhaul
[perl/modules/Thread-Cleanup.git] / Cleanup.xs
index 34296e1d22116b68b21ade2426941dc496510255..cc55d59e98eec3206bb0b6b3afbce854c8555372 100644 (file)
@@ -1,5 +1,5 @@
-/* This file is part of the Scope::Upper Perl module.
- * See http://search.cpan.org/dist/Scope-Upper/ */
+/* This file is part of the Thread::Cleanup Perl module.
+ * See http://search.cpan.org/dist/Thread-Cleanup/ */
    
 #define PERL_NO_GET_CONTEXT
 #include "EXTERN.h"
@@ -31,9 +31,9 @@ STATIC void tc_callback(pTHX_ void *ud) {
   PUSHMARK(SP);
   PUTBACK;
 
-  call_pv(__PACKAGE__ "::_CLEANUP", G_VOID);
+  call_pv(__PACKAGE__ "::_CLEANUP", G_VOID | G_EVAL);
 
-  SPAGAIN;
+  PUTBACK;
 
   FREETMPS;
   LEAVE;