diff mbox series

[RFCPATCH20/20] replay: don't destroy mutex at exit

Message ID 20171031104929.3079.59019.stgit@pasha-VirtualBox
State New
Headers show
Series [RFCPATCH20/20] replay: don't destroy mutex at exit | expand

Commit Message

Pavel Dovgalyuk Oct. 31, 2017, 10:49 a.m. UTC
Replay mutex is held by vCPU thread and destroy function is called
from atexit of the main thread. Therefore we cannot destroy it safely.

Signed-off-by: Pavel Dovgalyuk <pavel.dovgaluk@ispras.ru>
---
 replay/replay.c |    1 -
 1 file changed, 1 deletion(-)
diff mbox series

Patch

diff --git a/replay/replay.c b/replay/replay.c
index 7fc50ea..3f431ad 100644
--- a/replay/replay.c
+++ b/replay/replay.c
@@ -358,7 +358,6 @@  void replay_finish(void)
     replay_snapshot = NULL;
 
     replay_finish_events();
-    replay_mutex_destroy();
 }
 
 void replay_add_blocker(Error *reason)