Subject: | use of sigtrap pragma breaks callers that use POSIX::sigaction |
Hi. My calling script uses POSIX::sigaction to register signal handlers and stack them up so they all fire appropriately.
When I "use Kafka::Connection" anywhere, all of a sudden it all breaks. I get an error message that I don't expect, with the sigtrap stack trace. When it tries to run that last stacked-up oldhandler, it goes out to lunch and kills stderr somehow, leaving me guessing.
It looks like you left "use sigtrap" in Kafka::IO. When I comment that out, everything works fine.
I think it is usually up to the user to "use sigtrap" or not, depending on what they want to do with signals. Since there does not appear to be any use of signals in Kafka.pm and related libraries, I would suggest removing this line. If you need that for the test scripts, please "use sigtrap" in the top-level test scripts.
Thank you.
Mark