diff --git a/src/debug.c b/src/debug.c index de1dfb8f9..d052f5b63 100644 --- a/src/debug.c +++ b/src/debug.c @@ -2347,7 +2347,6 @@ static int debug_iohandler_counters(struct appctx *appctx) void debug_handler(int sig, siginfo_t *si, void *arg) { struct buffer *buf = HA_ATOMIC_LOAD(&th_ctx->thread_dump_buffer); - int harmless = is_thread_harmless(); int no_return = 0; /* first, let's check it's really for us and that we didn't just get @@ -2371,13 +2370,6 @@ void debug_handler(int sig, siginfo_t *si, void *arg) */ ha_thread_dump_one(tid, 1); - /* mark the current thread as stuck to detect it upon next invocation - * if it didn't move. - */ - if (!harmless && - !(_HA_ATOMIC_LOAD(&th_ctx->flags) & TH_FL_SLEEPING)) - _HA_ATOMIC_OR(&th_ctx->flags, TH_FL_STUCK); - /* in case of panic, no return is planned so that we don't destroy * the buffer's contents and we make sure not to trigger in loops. */