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:
Matteo Riondato 2006-09-28 21:22:21 +00:00
parent d64e328e3c
commit 9e0573fdc2

View File

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