diff options
author | David Timber <dxdt@dev.snart.me> | 2024-11-23 08:22:48 +0100 |
---|---|---|
committer | David Timber <dxdt@dev.snart.me> | 2024-11-23 08:22:48 +0100 |
commit | a3d2e4f801a327c1c2c4f16d9f61eaf8e7c86495 (patch) | |
tree | f5d131a5577d61b33891e825f608427432b00f2c /writeups/ipv6/eyeball/eyeball.c | |
parent | b2feb76dc31297fb42c481b9b751eafa5ce00ca5 (diff) |
Patch writeups/ipv6/eyeball/eyeball.c ...
Just a final touch: pthread_create() returns errno rather than setting
it before returning.
Diffstat (limited to 'writeups/ipv6/eyeball/eyeball.c')
-rw-r--r-- | writeups/ipv6/eyeball/eyeball.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/writeups/ipv6/eyeball/eyeball.c b/writeups/ipv6/eyeball/eyeball.c index af08ccf..21e99f6 100644 --- a/writeups/ipv6/eyeball/eyeball.c +++ b/writeups/ipv6/eyeball/eyeball.c @@ -385,6 +385,7 @@ bool spawn_threads (void) { fr = pthread_create(&g.th[i].th, NULL, happy_th_main, &g.th[i].args); g.th[i].started = fr == 0; if (!g.th[i].started) { + errno = fr; perror(ARGV0": pthread_create()"); return false; } |