diff options
author | Warner Losh <imp@FreeBSD.org> | 2009-01-02 08:21:21 +0000 |
---|---|---|
committer | Warner Losh <imp@FreeBSD.org> | 2009-01-02 08:21:21 +0000 |
commit | 96747dc0154eaee558a330165b9f43365d4b0dd7 (patch) | |
tree | 30b661c3e9ce87cbdf6b18739fe2a23adf2382c1 /usr.sbin | |
parent | 42a168ce618042d31d95f9c1df3a969f4c3b89f2 (diff) | |
download | src-96747dc0154eaee558a330165b9f43365d4b0dd7.tar.gz src-96747dc0154eaee558a330165b9f43365d4b0dd7.zip |
Add fd = -1 after close when we detect the format so that subsequent
open_dev will reopen the device.
Notes
Notes:
svn path=/head/; revision=186696
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/fwcontrol/fwcontrol.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/usr.sbin/fwcontrol/fwcontrol.c b/usr.sbin/fwcontrol/fwcontrol.c index b55cf2ac9469..eabbc23b45c9 100644 --- a/usr.sbin/fwcontrol/fwcontrol.c +++ b/usr.sbin/fwcontrol/fwcontrol.c @@ -1065,6 +1065,7 @@ main(int argc, char **argv) if (recvfn == NULL) { /* guess... */ recvfn = detect_recv_fn(fd, TAG | CHANNEL); close(fd); + fd = -1; } snprintf(devbase, sizeof(devbase), "%s%d.0", device_string, current_board); if (open_dev(&fd, devbase) < 0) |