Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:118688 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 76549 invoked from network); 22 Sep 2022 13:15:22 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 22 Sep 2022 13:15:22 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 56C8A180210 for ; Thu, 22 Sep 2022 06:15:22 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS15169 209.85.128.0/17 X-Spam-Virus: No X-Envelope-From: Received: from mail-ej1-f51.google.com (mail-ej1-f51.google.com [209.85.218.51]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Thu, 22 Sep 2022 06:15:18 -0700 (PDT) Received: by mail-ej1-f51.google.com with SMTP id z13so1784135ejp.6 for ; Thu, 22 Sep 2022 06:15:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date; bh=iESTp9oCBkGeLZIvKMAKRfsEc1wdZgzugU1joE9CM6U=; b=pDIRYSm8m8z1Vkn9Y43U64mqdXGNYBmgXl8sQhvhM4CHkDZW7Utr2kwNjGSgwNT3g3 9QW9/eqctS6afh2EUdCtTXSScibLR+RYDH4NckL1skuSOHX99jIttJUxgAW7o1BMdAch 8POhRMAcZofKLwIvQgOZMSAI+EvCtNtsC1NNaPcYaY5cBP4NNSisBRAA3/Job7qd+b+X G25qImw6YJiYfaY3BB7CPBGjQfCIJmNfuTIYU/cxekKV/CznUtX4QEamkvjhplpBZs1S i6kTDxW3UO8i7h0x9i9maQeOih6Z+5ucxkDUtHtAS2zSu/h8iZ8h4W5srdZeRgD/woeh flbQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date; bh=iESTp9oCBkGeLZIvKMAKRfsEc1wdZgzugU1joE9CM6U=; b=ZYfjb4Ll4HVxjym8qaPFKGYDYk63YWyXJH4d8RiNC8/rgVnnbv3IWX2GNna49l8bhm XFBZ7onUkiMUyPAAgL6Fz2e3MSPPOSAP/IWTlA4cMsUFakjpkxkezYPO9s7706bg6KOU +7aCvKv7ELwbVv696BKvZ5zbekZfB9Cua0i6jGE8SqAtJ1nWaQ87wUxhpQpmdhHV7WH9 7hiN16A7jp/ZdV8lXA/gEZaAWujRqakLl9EiIQEhfQZZrcvmJSjYruKocUUIBrgTOfA0 8psvaE+HFowRbwKUWHNgTCAwq5ZTY6vmj+4izT7XM4OayFtK4BZ6REAd+Edgu5XHKoYh I+iw== X-Gm-Message-State: ACrzQf1Pi0fIWKJxH7Xe9JUF2u45hna/ObJaEZKBC1rEfRUmIC2zYBho REfaATyv+h8VKMlzyv0X8QHpk8dhEnYe12faicHo+BVU X-Google-Smtp-Source: AMsMyM5mz/Tb4N8d93ASaNo0XQUfi12EHc6X2XdPnpLRfs5T6kpDOJp1jYFrAP4v+Puf67nD0PEY4t/jGjAJn4WakUQ= X-Received: by 2002:a17:907:2cd5:b0:77c:b9cb:bdac with SMTP id hg21-20020a1709072cd500b0077cb9cbbdacmr2842088ejc.265.1663852517525; Thu, 22 Sep 2022 06:15:17 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Thu, 22 Sep 2022 15:15:06 +0200 Message-ID: To: kevin@dunglas.dev Cc: PHP internals Content-Type: multipart/alternative; boundary="000000000000440b5f05e943dad6" Subject: Re: [PHP-DEV] Set SA_ONSTACK in zend_sigaction External From: krakjoe@gmail.com (Joe Watkins) --000000000000440b5f05e943dad6 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Kevin, Master should be targeted, no RFC is required, and the patch looks fine to me. Cheers Joe On Thu, 22 Sep 2022, 14:56 K=C3=A9vin Dunglas, wrote: > Hi, internals! > > It's been a while. > > I'm currently working on a new SAPI for web servers written in Go. > Many virtual machines, including Go ( > https://pkg.go.dev/os/signal#hdr-Go_programs_that_use_cgo_or_SWIG), depen= d > on signals using SA_ONSTACK ( > https://man7.org/linux/man-pages/man2/sigaltstack.2.html). This flag > allows > a thread to define a new alternate signal stack. Many argue that SA_ONSTA= CK > should be a default, but it's not the case (yet). > > Python merged a patch setting SA_ONSTACK in 2021 (Python 3.10+) for the > same reasons (https://bugs.python.org/issue43390 / > > https://github.com/python/cpython/commit/02ac6f41e5569ec28d625bb005155903= f64cc9ee > ), > with no issues. > > I opened a Pull Request to set this flag by default and tested it > successfully with my Go SAPI: https://github.com/php/php-src/pull/9597 > > As this is technically at the limit between a new feature and a bug fix > (having the ability to call Go/C++ VM code from PHP and embed PHP in such > programs), should I open an RFC? Also, if merging my patch is considered, > which branch should I target? > > Cheers, > -- > K=C3=A9vin Dunglas > --000000000000440b5f05e943dad6--