<lapweezle>
Trying to write code to clean up nicely when shut down from the command line, or due to getting SIGKILL or such.
<lapweezle>
I have the SIGKILL bit figured out, but I'm using the Daemons gem to daemonize it. If I send 'stop' through that, I get a big, ugly exception log generated, so something isn't right. :/
<CM-Punk>
Oh, I don't know...sorry :|
<lapweezle>
no worries :/
<lapweezle>
Thank you very much for trying.
<CM-Punk>
No problem :P
<lapweezle>
oooooh there is a :stop_proc option ...
<lapweezle>
In Daemons that is.
<lapweezle>
Not sure how to use it, yet, though...
leftylink has quit [Ping timeout: 272 seconds]
leftylink has joined #cinch
lapweezle has quit [Quit: wife aggro]
leftylink has quit [Ping timeout: 245 seconds]
leftylink has joined #cinch
leftylink has quit [Ping timeout: 253 seconds]
leftylink has joined #cinch
leftylink has quit [Read error: Operation timed out]
leftylink has joined #cinch
<lagweezle>
Should I be calling bot.quit then bot.stop, or just bot.quit ?
leftylink has quit [Ping timeout: 252 seconds]
needsmoreeunji has joined #cinch
needsmoreeunji has quit [Client Quit]
needsmoreeunji has joined #cinch
<lagweezle>
The silence is deafening at times. :/
<lagweezle>
But I am patient.
needsmoreeunji has quit [Ping timeout: 245 seconds]
needsmoreeunji has joined #cinch
needsmoreeunji has left #cinch [#cinch]
<catepillar>
lagweezle: i would go with quit
<lagweezle>
catepillar: thankee
<lagweezle>
i guess stop doesn't really do much...
<lagweezle>
unless I forget something
<lagweezle>
Time to sleeeep... *falls over*
<catepillar>
iirc, stop is mostly for the timers
<catepillar>
and im not even sure there is a stop method for the bot class
kludge` has quit [Ping timeout: 252 seconds]
kludge` has joined #cinch
onewheelskyward_ has joined #cinch
onewheelskyward has quit [*.net *.split]
onewheelskyward_ is now known as onewheelskyward
<dominikh>
none that's public.
[krisbulman] is now known as krisbulman
krisbulman is now known as [krisbulman]
postmodern has quit [Quit: Leaving]
<lagweezle>
That ... is a very good point, dominikh.
Spami__ has quit [Quit: This computer has gone to sleep]
Spami__ has joined #cinch
[krisbulman] is now known as krisbulman
<onewheelskyward>
Has anyone successfully unit tested their plugins?
<onewheelskyward>
I'm having trouble loading it based on the example I found.
<lagweezle>
I've seen an example where things are mocked out, but I'm not advanced enough to convert that to the test framework I'm using, quite yet.
<onewheelskyward>
Yeah, that's the only example I've found so far, too.
<onewheelskyward>
I was trying to adapt the Cinch::PLugins test but I failed miserably. :)
<onewheelskyward>
I'm probably building my plugins wrong.
kith has quit [Quit: kith]
<lagweezle>
Man. Sure feel like I'm missing something with shutting down cinch.
<lagweezle>
Is there a way to know when all the handlers and timers and queues are emptied and stopped? Some way of knowing it is safe to call exit, or return control to the daemon wrappers to finalize shut down?
<dominikh>
wait for Bot#start to return?
kith has joined #cinch
<lagweezle>
That ... sounds simple. ^^;
<lagweezle>
Just have to write something so I can confirm that from inside an at_exit block.
<lagweezle>
or trap
<lagweezle>
Thank you dominikh
Spami__ has quit [Quit: This computer has gone to sleep]
krisbulman is now known as [krisbulman]
Spami__ has joined #cinch
[krisbulman] is now known as krisbulman
krisbulman is now known as [krisbulman]
CM-Punk has quit [*.net *.split]
CM-Punk has joined #cinch
[krisbulman] is now known as krisbulman
Spami__ has quit [Quit: This computer has gone to sleep]
krisbulman is now known as [krisbulman]
<rikai>
Hm, so if someone sends an extremely long message with the prefix character at the beginning, cinch seems to lock up for a while trying to process the matching...
<rikai>
Is there a good way to avoid that? Maybe ignoring anything over a certain length...? Is that even possible?
<dominikh>
that'll only happen if you write regexps that require exponential time to process
<rikai>
mmm, regexps are not my srong suit in the least. :P