Subject: trap ctrl-c and exit nicely
From: "Jim" <narf968 gmail.com>
Date: Sun, 18 Dec 2005 01:32:51 +0900
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?