svn commit: r330967 - stable/11/usr.sbin/fwcontrol
Eitan Adler
eadler at FreeBSD.org
Thu Mar 15 04:59:48 UTC 2018
Author: eadler
Date: Thu Mar 15 04:59:47 2018
New Revision: 330967
URL: https://svnweb.freebsd.org/changeset/base/330967
Log:
MFC r327279,r327571:
Close fd when we're done dv-sending the file.
Modified:
stable/11/usr.sbin/fwcontrol/fwdv.c
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/usr.sbin/fwcontrol/fwdv.c
==============================================================================
--- stable/11/usr.sbin/fwcontrol/fwdv.c Thu Mar 15 02:32:22 2018 (r330966)
+++ stable/11/usr.sbin/fwcontrol/fwdv.c Thu Mar 15 04:59:47 2018 (r330967)
@@ -409,7 +409,6 @@ again:
err(1, "write failed");
}
}
- close(fd);
fprintf(stderr, "\n");
send_end:
gettimeofday(&end, NULL);
@@ -417,4 +416,5 @@ send_end:
+ (end.tv_usec - start.tv_usec) * 1e-6;
fprintf(stderr, "%d frames, %.2f secs, %.2f frames/sec\n",
frames, rtime, frames/rtime);
+ close(fd);
}
More information about the svn-src-stable
mailing list