From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([209.51.188.92]:49412) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1grjew-0001ES-3I for qemu-devel@nongnu.org; Thu, 07 Feb 2019 08:24:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1grjev-0004D0-I7 for qemu-devel@nongnu.org; Thu, 07 Feb 2019 08:24:06 -0500 Received: from fanzine.igalia.com ([91.117.99.155]:59531) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1grjev-000407-8O for qemu-devel@nongnu.org; Thu, 07 Feb 2019 08:24:05 -0500 From: Alberto Garcia Date: Thu, 7 Feb 2019 15:23:20 +0200 Message-Id: Subject: [Qemu-devel] [PATCH 0/3] char-socket: Fix race condition List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Alberto Garcia , Paolo Bonzini , =?UTF-8?q?Daniel=20P=20=2E=20Berrang=C3=A9?= , =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= Hi, this series fixes the crash I reported yesterday in char-socket and adds a new qemu_idle_add() function, fixing a couple of memory leaks along the way. Regards, Berto Alberto Garcia (3): main-loop: Don't leak GSources attached to a GMainContext main-loop: Add qemu_idle_add() char-socket: Lock tcp_chr_disconnect() and socket_reconnect_timeout() chardev/char-pty.c | 8 ++------ chardev/char-socket.c | 19 +++++++++++++++++-- include/qemu/main-loop.h | 8 ++++++++ io/task.c | 6 ++---- util/main-loop.c | 9 +++++++++ 5 files changed, 38 insertions(+), 12 deletions(-) -- 2.11.0