diff options
Diffstat (limited to 'writeups/ipv6/eyeball/eyeball.c')
-rw-r--r-- | writeups/ipv6/eyeball/eyeball.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/writeups/ipv6/eyeball/eyeball.c b/writeups/ipv6/eyeball/eyeball.c index fc01773..6ada24b 100644 --- a/writeups/ipv6/eyeball/eyeball.c +++ b/writeups/ipv6/eyeball/eyeball.c @@ -303,6 +303,10 @@ bool parse_args (const int argc, const char **argv) { } } + if (opts.flags.help) { + return true; + } + if (argc < optind + 2) { fprintf(stderr, ARGV0": too few arguments\n"); return false; @@ -450,7 +454,7 @@ ssize_t poll_result (void) { if (g.th[0].err.ready && g.th[1].err.ready) { // both failed - return -1; + break; } // both still trying |