Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Mar 2018 04:59:47 +0000 (UTC)
From:      Eitan Adler <eadler@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r330967 - stable/11/usr.sbin/fwcontrol
Message-ID:  <201803150459.w2F4xl9X018118@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);
 }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201803150459.w2F4xl9X018118>