Sorry if this is a dupe. I first sent it a couple of days ago, but
never saw it show up.
I have a threaded script which will eventually terminate, but which in
many cases I would like to end with a Control-C. No problem. Except
that I would also like to have a printout of current statistics at the
point where I send the INT. Without threads, I would simply use an END
block and trap for SIG{INT}, but with threads it's not so simple. Since
threads and signals are OS dependent, this seems to be an OSX issue
(not that it I know how to do it under any other OS, either, but it
keeps the question from being too far off topic; i.e., it's an excuse
for posting to this list). Anyone ever do anything like this under OS X
with perl-5.8.3, or have any suggestions?
Thanks.
- Larry