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:
I know what you are trying to say...but the whole idea of putting it in comp-sci terms makes it look really nerdy.
Apps.. If you think we can't catch what signal you are giving.. then you are mistaken!
BTW.. nice effort to hide it!
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 )
You honestly think we can programme things to behave this way? :)Apps, is this advise or a reminder? ;)
This is Gyaaan O:)
just one question..
should we save changes before exiting?
ô¿ô
Post a Comment
<< Home