]> Dogcows Code - chaz/tar/blobdiff - src/buffer.c
Do not try to drain the input pipe before closing the archive.
[chaz/tar] / src / buffer.c
index 02a3e4c620aeffc0ef6714fc951c05bd59f2fb43..5f5457a95571e531a027179b511fdb0c41763d69 100644 (file)
@@ -848,8 +848,6 @@ close_archive (void)
         flush_archive ();
     }
 
-  sys_drain_input_pipe ();
-
   compute_duration ();
   if (verify_option)
     verify_volume ();
@@ -857,7 +855,7 @@ close_archive (void)
   if (rmtclose (archive) != 0)
     close_error (*archive_name_cursor);
 
-  sys_wait_for_child (child_pid);
+  sys_wait_for_child (child_pid, hit_eof);
 
   tar_stat_destroy (&current_stat_info);
   if (save_name)
This page took 0.022793 seconds and 4 git commands to generate.