Applied to the current rc1 tar.gz archive. Thanks Emmanuel!
-- You received this message because you are subscribed to the Google Groups "netsniff-ng" group.
To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] http://netsniff-ng.org
commit 4b8f64fe48e0909f461734c7c04eaf7d46d00663 Author: Emmanuel Roullit <[email protected]> Date: Mon Sep 20 22:19:50 2010 +0200 Thee spinner thread must not be created in the for loop :/ diff --git a/src/tx_ring.c b/src/tx_ring.c index d08d31e..b57f4d6 100644 --- a/src/tx_ring.c +++ b/src/tx_ring.c @@ -337,13 +337,13 @@ static void *flush_virt_tx_ring_thread(void *packed) ptd = (struct packed_tx_data *)packed; - for (; likely(!send_intr); errors = 0) { - ret = spinner_create(&spinner_ctx); - if (ret) { - err("Cannot create spinner thread"); - exit(EXIT_FAILURE); - } + ret = spinner_create(&spinner_ctx); + if (ret) { + err("Cannot create spinner thread"); + exit(EXIT_FAILURE); + } + for (; likely(!send_intr); errors = 0) { ret = flush_virt_tx_ring(ptd->sock, ptd->rb); if (ret < 0) { exit(EXIT_FAILURE);
