From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: master af152ffab1: Don't freeze if the compositing manager crashes Date: Sat, 30 Jul 2022 09:03:10 +0300 Message-ID: <831qu36std.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38048"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Po Lu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Jul 30 08:04:19 2022 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oHfaE-0009ge-1W for ged-emacs-devel@m.gmane-mx.org; Sat, 30 Jul 2022 08:04:18 +0200 Original-Received: from localhost ([::1]:48716 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oHfaC-0002PQ-IA for ged-emacs-devel@m.gmane-mx.org; Sat, 30 Jul 2022 02:04:16 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58092) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oHfZ0-00017K-8o for emacs-devel@gnu.org; Sat, 30 Jul 2022 02:03:03 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:58434) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oHfYz-00021l-W0; Sat, 30 Jul 2022 02:03:02 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=Subject:To:From:Date:mime-version:in-reply-to: references; bh=q5tMnbwOCPFWxFlktL76t+umuKbnC5awoL3QMFfTXDg=; b=LbrvSyVu5e9A5e Y5uZ/lVT7sBMqg+wV/IljyfUGgufvezCA/yOOgb4A2bs+urzpDueoNMUZ/ow7ETvTETVUjYnH7RWv yT+soWGvfCZptj+nrjzd8dsA0CViVFk/lO30d3ylTpynMR88T4J9eE8xJi4XLAxAwRz/XxJd1qdli tB4UYNahiMJWfyJdTJtPG1Tao01yWnEoqXXMPKIQmM7MiaDKzlpqeCP6BLiayIn/r90po3vMDKafD dv4u1yBP24DF6B000WiBoLtoGSwWWVAUdlAkEL/Z3PsxMHgLcPBc57WLGpbR79UgI5OQoa8QoKjVn /0A02sZ4LiBLEZrXsubQ==; Original-Received: from [87.69.77.57] (port=1578 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oHfYw-00085T-3k; Sat, 30 Jul 2022 02:03:01 -0400 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:292851 Archived-At: There are a few places in Emacs that wait for similar reasons, so my suggestion is to do this like they do, i.e. by calling wait_reading_process_output. The advantage is that we let other code and other threads to run while we wait.