From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.devel Subject: Re: 1024 file descriptors should be enough for anyone Date: Fri, 06 May 2022 14:21:28 +0200 Message-ID: <87y1ze3l87.fsf@gmail.com> References: <874k25726k.fsf@gmail.com> <87pmkslrwx.fsf@yahoo.com> <87v8uk5ucc.fsf@gmail.com> <87bkwb3w19.fsf@gmail.com> <877d6z9h3j.fsf@yahoo.com> <877d6z3uf6.fsf@gmail.com> <8735hn9fhy.fsf@yahoo.com> <8735hn3t3r.fsf@gmail.com> <87r1577xjj.fsf@yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36554"; 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 Fri May 06 14:28: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 1nmx4B-0009B4-Ut for ged-emacs-devel@m.gmane-mx.org; Fri, 06 May 2022 14:28:15 +0200 Original-Received: from localhost ([::1]:57310 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nmx4A-0007N2-Ty for ged-emacs-devel@m.gmane-mx.org; Fri, 06 May 2022 08:28:14 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43970) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nmwxi-00082f-JY for emacs-devel@gnu.org; Fri, 06 May 2022 08:21:36 -0400 Original-Received: from mail-wr1-x436.google.com ([2a00:1450:4864:20::436]:39745) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nmwxf-00064t-Rc for emacs-devel@gnu.org; Fri, 06 May 2022 08:21:33 -0400 Original-Received: by mail-wr1-x436.google.com with SMTP id d5so9806587wrb.6 for ; Fri, 06 May 2022 05:21:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:date:in-reply-to:message-id :mime-version:content-transfer-encoding; bh=Y+lUJ6hY5hTwaijmoxbRkbklx8wy66fs/Oj4w9junII=; b=b2+c8LhhipW0LEmU+3jExrfVOZ85Vpc6ReNdC8uK8IAibFAFlMpHcGXQsREc0qyG9n 8gk/fT47gKbr6R8c6P1spIJdOqpsZrlK3jtDGDl1qrIhg3sfqemhMD2SxF+xwagkKowb k0B9Zwb5dGs+aP8QjpqoBAai/n8lWRkNyajxhO4tlhqnN8UqUpULbfRcMNjW3dD3aNT5 +MfveFIu+VNSJwlpI0wge5jsn7+oe/4eXN+sibs/w1/dQ7ZNGqgYt1G9W70eZVB2L9yy c+k37eqWLFDoM444K/7kBbiuxX6p31jcXt+AZkVCU4ctY49YqR2/y12f7k8sQVt/Vcfs ou2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:mime-version:content-transfer-encoding; bh=Y+lUJ6hY5hTwaijmoxbRkbklx8wy66fs/Oj4w9junII=; b=WONHAWjxHK+FcwDSDgVrVJrqbwMETtYq2o79ij6yA3ToVeTTp8tfWcCVh5/3OEZPsT /4ot7XQ8pxlArHOePGVEGZXJb+yX7zSJbyf1rBmQWGFIEoMGI/SP/4Oh7Q8GxcTXYVtD ppZRELHn2zwE4n28ZJgBT5g1iB0KK672u63MbQmj+6KR4qz4LGhB9VkOVYHYvhHNWh60 Nz7NKf2GweNMjce0bRYY2SdMFzPdHMXa+UggmbNQ3OGDFh6SMvrpy0FSc5+hPqGR0tSn yu6Z3/oRnHDB7WXR77uBHLiGD8NgeuMemXIzdrHE+kL0HJnyDsI8HrIaOdLQMna9ncXY 6fpQ== X-Gm-Message-State: AOAM530xc5GMxWRLT/r/pr9A+fwtw5uRkEpoNEF1qEJCKA2P+6PaARsO SJnZZ2WdXSLkyllFrmYa20VpW8FpVZ8= X-Google-Smtp-Source: ABdhPJzZ+7XnRWquMCvCQU84aCLFn4VPKdK6IKTNr52aOxih7JcKvm/ZNMM4JCAqRcfpOvggLxQOig== X-Received: by 2002:a05:6000:2a6:b0:20c:687b:1f96 with SMTP id l6-20020a05600002a600b0020c687b1f96mr2542924wry.716.1651839689775; Fri, 06 May 2022 05:21:29 -0700 (PDT) Original-Received: from rltb ([2a01:e0a:3f3:fb50:2e78:c913:b2bf:8582]) by smtp.gmail.com with ESMTPSA id m65-20020a1c2644000000b003942a244ecesm3939833wmm.19.2022.05.06.05.21.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 May 2022 05:21:29 -0700 (PDT) In-Reply-To: <87r1577xjj.fsf@yahoo.com> (Po Lu's message of "Fri, 06 May 2022 18:41:52 +0800") Received-SPF: pass client-ip=2a00:1450:4864:20::436; envelope-from=rpluim@gmail.com; helo=mail-wr1-x436.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action 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:289315 Archived-At: >>>>> On Fri, 06 May 2022 18:41:52 +0800, Po Lu said: Po> Robert Pluim writes: >> TIL that Imake.cf is still used, and now I=CA=BCm having flashbacks = =E2=98=BA=EF=B8=8F Po> Actually, you were right. It seems that Xt migrated to Autoconf as Po> well. Po> I thought only the X server switched to autoconf. Is this the kind of change you were thinking of? Or do I need to call 'XtCloseDisplay' as well? diff --git a/src/xterm.c b/src/xterm.c index 285b1d625e..28bf81c0bd 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -23232,13 +23232,18 @@ #define NUM_ARGV 10 resource_name, EMACS_CLASS, emacs_options, XtNumber (emacs_options), &argc, argv); - request_sigio (); - turn_on_atimers (true); + if (ConnectionNumber (dpy) >=3D FD_SETSIZE) + dpy =3D 0; + else + { + request_sigio (); + turn_on_atimers (true); =20 #ifdef HAVE_X11XTR6 /* I think this is to compensate for XtSetLanguageProc. */ - fixup_locale (); + fixup_locale (); #endif + } } =20 #else /* not USE_X_TOOLKIT */ Robert --=20