[PATCH v2] ping: Add Ctrl+C event handling