Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Plack: Shutdown handler?

by armstd (Friar)
on Aug 11, 2011 at 18:29 UTC ( #919927=note: print w/replies, xml ) Need Help??


in reply to Plack: Shutdown handler?

I'm probably missing something here, but when you are setting up your signal handler, you'll certainly have the opportunity to save aside whatever existing handler is in place already?

If there's a pre-existing handler, why not just have your handler call it once your handler is done? My concern would be whether the stuff you're using that set their own handler would be as accomodating to your handler, and whether you would ever end up in a loop situation.

--Dave

Replies are listed 'Best First'.
Re^2: Plack: Shutdown handler?
by jdrago999 (Pilgrim) on Aug 12, 2011 at 00:37 UTC

    I'm probably missing something here, but when you are setting up your signal handler, you'll certainly have the opportunity to save aside whatever existing handler is in place already?

    Yes - and if there is no other way around it, I'll do that.

    My concern would be whether the stuff you're using that set their own handler would be as accomodating to your handler, and whether you would ever end up in a loop situation.

    That's exactly the reason I was originally reluctant to simply check for existing handlers - "What if something else clobbers mine?" I will just have to try it and find out...

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://919927]
help
Chatterbox?
[ELISHEVA]: csv_detect_bom doesn't work either
[erix]: (SCNR)
[ELISHEVA]: I may have to resort to SOPW - but was hoping that this would be something simple
[erix]: I'd just remove the BOM, it is pretty simple
[ELISHEVA]: Simple yes. and I did consider that. but this isn't one off . An important data source that I don't control is generating bom prefixed utf8 files and I'd rather not have to be munging files every few months.
[erix]: on teh other hand a SOPW is pretty much garanteed to get an answer from tux (and probably the module fixed)
[ELISHEVA]: plus it bugs me that something that *should* be simple, *should* work- unicode and noms aren't exactly the new kids on the block
[ELISHEVA]: well then since the obvious possible mistakes on my part have been ruled out, SOPW it is.
[ELISHEVA]: the data source, or one of them, is the OECD - they provide a *lot* of data that ought to be easily available to perl programmers.
[erix]: it might be cunning to mention the module in the title... :)

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (9)
As of 2017-05-28 20:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?