+static void read_final_goodbye(int f_in, int f_out, int flist_count)
+{
+ if (protocol_version < 29) {
+ read_int(f_in);
+ return;
+ }
+
+ /* Handle any keep-alive messages from --delete-after processing. */
+ while (read_int(f_in) == flist_count) {
+ if (read_shortint(f_in) != ITEM_IS_NEW)
+ return; /* Complain? */
+ write_int(f_out, flist_count);
+ write_shortint(f_out, ITEM_IS_NEW);
+ }
+}
+
+