From a3d2e4f801a327c1c2c4f16d9f61eaf8e7c86495 Mon Sep 17 00:00:00 2001 From: David Timber Date: Sat, 23 Nov 2024 08:22:48 +0100 Subject: Patch writeups/ipv6/eyeball/eyeball.c ... Just a final touch: pthread_create() returns errno rather than setting it before returning. --- writeups/ipv6/eyeball/eyeball.c | 1 + 1 file changed, 1 insertion(+) 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; } -- cgit