PERFORCE change 222074 for review

Brooks Davis brooks at FreeBSD.org
Fri Feb 15 19:52:03 UTC 2013


http://p4web.freebsd.org/@@222074?ac=10

Change 222074 by brooks at brooks_zenith on 2013/02/15 19:51:10

	Explicitly close the output file descriptor so that work
	performed when the descriptor is closed is included in the
	summary output.

Affected files ...

.. //depot/projects/ctsrd/beribsd/src/bin/dd/dd.c#4 edit

Differences ...

==== //depot/projects/ctsrd/beribsd/src/bin/dd/dd.c#4 (text+ko) ====

@@ -98,6 +98,13 @@
 		dd_in();
 
 	dd_close();
+	/*
+	 * Some devices such as cfi(4) may perform significant amounts
+	 * of work when a write descriptor is closed.  Close the out
+	 * descriptor explicitly so that the summary handler (called
+	 * from an atexit() hook) includes this work.
+	 */
+	close(out.fd);
 	exit(0);
 }
 


More information about the p4-projects mailing list