diff options
| author | Dimitri Staessens <dimitri@ouroboros.rocks> | 2026-05-01 15:30:40 +0200 |
|---|---|---|
| committer | Sander Vrijders <sander@ouroboros.rocks> | 2026-05-20 08:17:04 +0200 |
| commit | 3be3360349ee823531d6c3e53b188a7e8af2b761 (patch) | |
| tree | 733730ec06017c753eabc1d552fe31fe2bbf24f3 /src/tools/operf/operf.c | |
| parent | e05bd477e73b9a5d533c4865022602dc60cec1ab (diff) | |
| download | ouroboros-3be3360349ee823531d6c3e53b188a7e8af2b761.tar.gz ouroboros-3be3360349ee823531d6c3e53b188a7e8af2b761.zip | |
tools: Use distinct exit codes
The tools will now use the following convention:
0 — success
1 — runtime/I/O failure or packet loss
2 — setup failure
oping now uses a SIGALRM to exit on duration tests.
Signed-off-by: Dimitri Staessens <dimitri@ouroboros.rocks>
Signed-off-by: Sander Vrijders <sander@ouroboros.rocks>
Diffstat (limited to 'src/tools/operf/operf.c')
| -rw-r--r-- | src/tools/operf/operf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/operf/operf.c b/src/tools/operf/operf.c index 1872b351..0198e871 100644 --- a/src/tools/operf/operf.c +++ b/src/tools/operf/operf.c @@ -248,5 +248,5 @@ int main(int argc, char ** argv) if (ret < 0) exit(EXIT_FAILURE); - exit(EXIT_SUCCESS); + exit(ret); } |
