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
@ -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