mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
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
1 changed files with 2 additions and 0 deletions
|
|
@ -205,6 +205,7 @@ abort:
|
|||
stopclock();
|
||||
if (amount > 0)
|
||||
printstats("Sent", amount);
|
||||
txrx_error = 1;
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
@ -330,6 +331,7 @@ abort: /* ok to ack, since user */
|
|||
stopclock();
|
||||
if (amount > 0)
|
||||
printstats("Received", amount);
|
||||
txrx_error = 1;
|
||||
}
|
||||
|
||||
static int
|
||||
|
|
|
|||
Loading…
Reference in a new issue