Date: Fri, 15 Feb 2013 19:52:02 GMT From: Brooks Davis <brooks@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 222074 for review Message-ID: <201302151952.r1FJq2JO062611@skunkworks.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://p4web.freebsd.org/@@222074?ac=10 Change 222074 by brooks@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); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201302151952.r1FJq2JO062611>