# Detecting kill messages

**URL:** <https://www.ruby-forum.com/t/detecting-kill-messages/157327>\
**Category:** Ruby\
**Created:** [January 9, 2009, 1:05pm UTC](https://www.ruby-forum.com/t/detecting-kill-messages/157327 "2009-01-09T13:05:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![masterperas](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ecd19e/32.png) [@masterperas](https://www.ruby-forum.com/u/masterperas)\
**Post date:** [January 9, 2009, 1:05pm UTC](https://www.ruby-forum.com/t/detecting-kill-messages/157327/1 "2009-01-09T13:05:28Z")

</div>

If im running a console application, something simple looping on the  
user input, is there anyway i can detect that the application is  
shutting down from a OS kill message?

---

<div class="post-metadata">

**Author:** ![masterperas](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ecd19e/32.png) [@masterperas](https://www.ruby-forum.com/u/masterperas)\
**Post date:** [January 9, 2009, 1:26pm UTC](https://www.ruby-forum.com/t/detecting-kill-messages/157327/2 "2009-01-09T13:26:04Z")

</div>

On Jan 9, 12:02 pm, masterperas [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> If im running a console application, something simple looping on the  
> user input, is there anyway i can detect that the application is  
> shutting down from a OS kill message?

Ignor this has it was answered not so long ago. This should teach me  
how to do a damn search.
