dc_frame_send now returns -1 instead of looping when write(2) returns 0 for the payload or the trailing newline.