Fold handle_ioctl into rec_process_event, for consistency.