I have a Ruby script that uses Event machine to listen on a port for
incoming data. When data is received, the script saves it to the
How can I kill this script gracefully? I want to make sure that the
data is not being processed or saved the to DB when I kill it.
script looks something like:
def receive_data data
#Process and save data
$a = EventMachine::open_datagram_socket “”, 1720,