aboutsummaryrefslogtreecommitdiff
path: root/writeups/ipv6/eyeball/eyeball.c
diff options
context:
space:
mode:
authorDavid Timber <dxdt@dev.snart.me>2024-11-23 08:22:48 +0100
committerDavid Timber <dxdt@dev.snart.me>2024-11-23 08:22:48 +0100
commita3d2e4f801a327c1c2c4f16d9f61eaf8e7c86495 (patch)
treef5d131a5577d61b33891e825f608427432b00f2c /writeups/ipv6/eyeball/eyeball.c
parentb2feb76dc31297fb42c481b9b751eafa5ce00ca5 (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.c1
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;
}