Ruby: How do make my program trap and exit properly from a signal?

Posted by Poul on Stack Overflow See other posts from Stack Overflow or by Poul
Published on 2010-05-01T17:31:04Z Indexed on 2010/05/01 17:37 UTC
Read the original article Hit count: 209

Filed under:
|

When I Ctrl C my program on linux I often get output that looks similar to a stack-dump (a crash).

Can I catch the Ctrl-C signal and exit gracefully?

Thanks!

© Stack Overflow or respective owner

Related posts about ruby

Related posts about linux