Closed nonnymoose closed 7 years ago
@lezsakdomi Do you think this is an acceptable solution to the problem? This way, if the behavior of perl changes again for some reason, it will still clean up properly.
Whoops, looks like I merged it anyway by resolving the conflicts. @lezsakdomi Let me know if there's a problem.
@lezsakdomi Yes, but either way, it will trigger the finish()
at the end of the program and the SIGTERM finish()
, so I felt like it would be a better idea to just exit at the end of finish()
so it won't be executed twice.
This has the added benefit that it will still work if Perl's behavior changes back to what it was while I was originally developing psr.
@nonnymoose Ok. Then do it the python way:
finish
)@lezsakdomi Okay, I will do that. It is not necessary, however, to remove the trap after mainloop because mainloop won't be checking that flag any more. Should I still do it for good practice?
@nonnymoose: One more function, which wastes CPU time :) So yes, do for good practice, please. Maybe in the future it would matter.
I did this by calling the
exit
function at the end offinish()
. Should fix #56 .