From: Jim Date: 2005-12-18T01:32:51+09:00 Subject: trap ctrl-c and exit nicely Hello, I want to trap a ctrl-c, wait for any http request to finish,and then exit the program. I know I can Kernel#trap , but not sure how to wait for the network operation to end. Do I need to perform the network operation in a thread?