Friday, June 17, 2005

Getting the right signals, a step-by-step guide :

-Select signals you want to handle.

-Dedicate a separate thread for catching them so that you're not just sitting around waiting.

-Block these signals for all other threads, to avoid getting in the way of other tasks.

-Keep out of the way of fatal ones, that break not just your thread but the entire process.

-Don't mix. Sending signals to other threads within your own process is not a wise thing to do.

-Wait for it to come by.

-When it comes, dont ignore it.

-Catch it, handle it well.. nicety always pays. Don't beat the shit out of it.

-If you must, exit gracefully.

6 Comments:

At 5:00 PM, Blogger KAD said...

I know what you are trying to say...but the whole idea of putting it in comp-sci terms makes it look really nerdy.

 
At 5:33 PM, Blogger Keshav said...

Apps.. If you think we can't catch what signal you are giving.. then you are mistaken!
BTW.. nice effort to hide it!

 
At 7:27 PM, Blogger Joviel said...

Me giving signal ???? No Mr. Keku.. you got the wrong "signals" then :PP.. I'm just trying to sound rrreal nerdy.. which I think I have achieved ( wrt kannu's comment )

 
At 11:03 AM, Blogger i-me-myself said...

You honestly think we can programme things to behave this way? :)Apps, is this advise or a reminder? ;)

 
At 12:10 PM, Blogger Joviel said...

This is Gyaaan O:)

 
At 4:51 PM, Blogger zombiee said...

just one question..
should we save changes before exiting?
ô¿ô

 

Post a Comment

<< Home