From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44399) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bLXwK-0007vy-P8 for qemu-devel@nongnu.org; Fri, 08 Jul 2016 11:43:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bLXwH-0003Pg-Lg for qemu-devel@nongnu.org; Fri, 08 Jul 2016 11:43:40 -0400 Received: from mx1.redhat.com ([209.132.183.28]:39727) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bLXwH-0003PR-Fd for qemu-devel@nongnu.org; Fri, 08 Jul 2016 11:43:37 -0400 References: <1467991671-93391-1-git-send-email-pbonzini@redhat.com> From: Paolo Bonzini Message-ID: <5510bab8-c7f4-07c4-4c27-a9717711a473@redhat.com> Date: Fri, 8 Jul 2016 17:43:33 +0200 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH] net: cleanup before character devices List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?UTF-8?Q?Marc-Andr=c3=a9_Lureau?= Cc: QEMU , Jason Wang On 08/07/2016 17:42, Marc-Andr=C3=A9 Lureau wrote: > Alternatively, if it's better to keep the atexit(net_cleanup), we > could have atexit(qemu_chr_cleanup) here, so it's only called on > normal exit and after net_cleanup. No, atexit functions are called in LIFO order (which actually makes sense if you think about it :)). Paolo