Set txrx_error to 1 when we reach abort. This makes the program correctly set the exit code.
The PR has further details on this. PR: bin/103206 Submitted by: John Hickey <jjh-freebsd@daedalian.us> MFC after: 3 days
This commit is contained in:
parent
d64e328e3c
commit
9e0573fdc2
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=162749
@ -205,6 +205,7 @@ xmitfile(fd, name, mode)
|
||||
stopclock();
|
||||
if (amount > 0)
|
||||
printstats("Sent", amount);
|
||||
txrx_error = 1;
|
||||
}
|
||||
|
||||
/*
|
||||
@ -330,6 +331,7 @@ recvfile(fd, name, mode)
|
||||
stopclock();
|
||||
if (amount > 0)
|
||||
printstats("Received", amount);
|
||||
txrx_error = 1;
|
||||
}
|
||||
|
||||
static int
|
||||
|
Loading…
Reference in New Issue
Block a user