[vlc-devel] [PATCH 1/2] Revert "interrupt: restore interrupted to the killed state"

Thomas Guillem thomas at gllm.fr
Thu Oct 24 09:17:26 CEST 2019


Reverted because it will cause live loops, as it becomes impossible to poll
after kill.

This reverts commit 2ec2e558d860ed1b2243a576e8e99e396304cd8d.
---
 src/misc/interrupt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/misc/interrupt.c b/src/misc/interrupt.c
index 54810892fc1..d2a04a72b3c 100644
--- a/src/misc/interrupt.c
+++ b/src/misc/interrupt.c
@@ -151,7 +151,7 @@ static int vlc_interrupt_finish(vlc_interrupt_t *ctx)
     if (ctx->interrupted)
     {
         ret = EINTR;
-        ctx->interrupted = atomic_load(&ctx->killed);
+        ctx->interrupted = false;
     }
     vlc_mutex_unlock(&ctx->lock);
     return ret;
-- 
2.20.1



More information about the vlc-devel mailing list