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
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=162749

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