From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?utf-8?Q?Gerd_M=C3=B6llmann?= Newsgroups: gmane.emacs.devel Subject: Re: SIGPROF + SIGCHLD and igc Date: Fri, 27 Dec 2024 16:53:25 +0100 Message-ID: References: <87o713wwsi.fsf@telefonica.net> <87ldw7fwet.fsf@protonmail.com> <87a5cnfj8t.fsf@protonmail.com> <86seqe4j4f.fsf@gnu.org> <87ttaucub8.fsf@protonmail.com> <87pllicrpi.fsf@protonmail.com> <864j2u442i.fsf@gnu.org> <87a5ch5z1b.fsf@gmail.com> <87plld6sni.fsf@gmail.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="14049"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Eli Zaretskii , pipcet@protonmail.com, ofv@wanadoo.es, emacs-devel@gnu.org, acorallo@gnu.org To: Helmut Eller Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Dec 27 16:54:04 2024 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 1tRCf6-0003ZJ-0V for ged-emacs-devel@m.gmane-mx.org; Fri, 27 Dec 2024 16:54:04 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tRCec-0003Q1-Fq; Fri, 27 Dec 2024 10:53:34 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tRCea-0003Pd-JB for emacs-devel@gnu.org; Fri, 27 Dec 2024 10:53:32 -0500 Original-Received: from mail-ed1-x52e.google.com ([2a00:1450:4864:20::52e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tRCeZ-00056F-48; Fri, 27 Dec 2024 10:53:32 -0500 Original-Received: by mail-ed1-x52e.google.com with SMTP id 4fb4d7f45d1cf-5d3d2a30afcso12842475a12.3; Fri, 27 Dec 2024 07:53:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1735314807; x=1735919607; darn=gnu.org; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Zt8nVxxcM+iUtlb6GGf5+6lFYFwm/RLnG6gn1+Id0T4=; b=GR/g935kV9dRjV0P1QcGzWYgvDacmNYAGxmZ5PSTAgZ1IB4Pxy5YFFCnQjbyMCvpsD AmRAmay0Xj7wiI64x3N3zU7MmyrHanLtv2H4ijLMXl+XXq9cxdqjj11om1r6mqJ8uMUh zLnlmL7oX0787DzRw3SmFyUSP5btv0qdHaJsfYwGezzM5sgwglMoZ87wcAjZkHyeuNYG ILvnXPiDVJS+AN1OkYKLbOGu3qBcN/On8XrxzKIz5qx2NKvFPsYR22kOOoGdxd0oZQ2g ousVxSTFBa3W6n1eJHEaeNeSVFZdgUBIVYmHYKMh+qE71pESorAnlz1+d9qLcL5nCVry I+7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1735314807; x=1735919607; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=Zt8nVxxcM+iUtlb6GGf5+6lFYFwm/RLnG6gn1+Id0T4=; b=r9o8jJFFhagHaeT56qYmGFrXmq63rwZbpuxHNPZMsT/2oQMf9CUO6MI8SwrewiIOCt NNSNMOl2MB27WeU8ilaFUdb3L3/947LKHuYtGqjvINZWgReSyNFyZH83UHtWsP1apR++ XzEHx/e2dEp+ubjJoBGsKZn4vl71V9A11Shrl6TwR3gIJMt2cnI8vK+BraW5l62pODJp 9RLm6wO9dzTVIfGJZylBGH680ZiUKDU8PqwxJzUPMonzZWPY6WF4VR9KPRZI9Cag3YdS kmaIFwhwd2io5m09BIJwfJAORB6PMnPAkGsbRKsEBTYp088qkWk+toyFY/3XNOZpVXbV Dn/Q== X-Forwarded-Encrypted: i=1; AJvYcCV1fWe1CPHBcYyr7mc2wCNOBKXgvo4L1FaqPIgCIspWwna3+SH2q0qroO2Ff15Q0+FhYXTkVxgcog==@gnu.org, AJvYcCW8/pCDRAgYaZVfdknicJeG2DE7IB5ICKRbzvxO5BoPM3zXGAUR36RU0yOdBk2WsnGhwuP+ATSfsFt33Ow=@gnu.org X-Gm-Message-State: AOJu0Yya+7DUcku9yuJfhOg/mywwwseIH8Dz51RxEVnHWrP8goEy1yPe HxD/KRFRCSeBzobZyS8AO2PqDLmHnxuPlp9nvDkz+JEsRP9LvpHwb4DS1w== X-Gm-Gg: ASbGncvUKNyNzsvFwqzglf+zRR60TLMsxto2MWj56JACtapafA3w6ZpgV5sjY1m7Kr9 BEs4yCEDYb89BjcAZrud/fI0dL+mB2EOt36WeTN9HkfmEetKkKF2IuGn7PUSA8GdrlWbqTkoN+z eUEJg9FauWODN6mVvCUViFblehAUSuNqexx3OwH479lBanfUqTQnedPMUmVchvN4PNzwJ4LUN4v NzsEWrpePFlfQhtDvVKDSIgNt2vA0rQ7CGwuqxZyrKNutPr6E1MCwdBZuCWUUFB1oR/gurKQqTz d5OY9by2H4e3K0t2OFr5bQsnSnixYtJhbrcmcco+sEoNlZkKT0hxhFjCeSVV X-Google-Smtp-Source: AGHT+IGQjTI7bDt52/vU2Y5P8fsKzVptAhfiIIzP6oP9rSke5uwBrmgPr3QBnrmaXp1Hd4wEQyFU8w== X-Received: by 2002:a05:6402:4402:b0:5d6:501c:daef with SMTP id 4fb4d7f45d1cf-5d81de2e06amr23461560a12.34.1735314806858; Fri, 27 Dec 2024 07:53:26 -0800 (PST) Original-Received: from pro2 (p200300e0b74e5900bde19f98ca9a60df.dip0.t-ipconnect.de. [2003:e0:b74e:5900:bde1:9f98:ca9a:60df]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5d80679efc9sm10875781a12.47.2024.12.27.07.53.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Dec 2024 07:53:26 -0800 (PST) In-Reply-To: <87plld6sni.fsf@gmail.com> (Helmut Eller's message of "Fri, 27 Dec 2024 16:40:33 +0100") Received-SPF: pass client-ip=2a00:1450:4864:20::52e; envelope-from=gerd.moellmann@gmail.com; helo=mail-ed1-x52e.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 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-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:327211 Archived-At: Helmut Eller writes: > On Fri, Dec 27 2024, Gerd M=C3=B6llmann wrote: > >>> Another observation: MPS sends SIGXFSZ and SIGXCPU to stop and resume >>> threads. We could intercept those signals and block SIGPROF while the >>> thread is stopped. Obviously a hack, but could still be useful. >> >> Do you know if it does the same on macOS? It sounds like something the >> Mach heritage of macOS might kick in. > > Sorry, I don't know anything about Mach. The code in thxc.c seems to > use a thread_suspend function. > > Helmut That seems to be a kernel function https://developer.apple.com/documentation/kernel/1418833-thread_suspend =20=20