Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:118881 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 26207 invoked from network); 25 Oct 2022 03:39:46 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 25 Oct 2022 03:39:46 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id A99581804A9 for ; Mon, 24 Oct 2022 20:39:43 -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=-0.2 required=5.0 tests=BAYES_20,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,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-lf1-f41.google.com (mail-lf1-f41.google.com [209.85.167.41]) (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 ; Mon, 24 Oct 2022 20:39:43 -0700 (PDT) Received: by mail-lf1-f41.google.com with SMTP id r14so19908567lfm.2 for ; Mon, 24 Oct 2022 20:39:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=datadoghq.com; s=google; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=v5w8KKLPZzFLz/fqko8BIbRjtDP7SwBSt8x2HVTK7zY=; b=DCXJ2pxO+iryUSUJNCTNuE4KElLlBOuWLl6DGPXU/HE9bJwuD+bCRIxqQ7RvhRUdmO dVsF9oyO6hFwmQvHrzkm8hnvXxBWOb2Ks7cqBP9kgP4MKqtxetaV6t8RBW9DNzLF4tQI fdZRGDYeqXDGU+YG92UHZWTBk+kAy6xr/CuPE= 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:message-id :reply-to; bh=v5w8KKLPZzFLz/fqko8BIbRjtDP7SwBSt8x2HVTK7zY=; b=4Lxs98hfMz1rZ+Zx9zMrjtFyNY4/pOJM77p7xY5VpwgE/b6ijaDwwsreczE3LoOYf0 /UQaWwkAgbi8Ip8rCJSdrU+8ek1regW5TjGtpRyxqeLQnKj/WeqFdqipgU5ZOxZXnhVW 8ilrMv5rSuTBvrkQGsIY5HOIQdLsprHtVBAjT3boVzCqy1e55WlKleDZRjX0/jvkiFex scC7ASop2kp/KzgZeaeRMIuzhht1/Wb+ugaI8RvKX0TrSu/jqcxBbiBlYD7ZP0Aed0nG l44fwQVlM0Ncv8KtxytEegE0uJ9TmPsdcAYv3E0Ab+bl0DRza9F63X+HwSJtbAbYL/cr evCw== X-Gm-Message-State: ACrzQf2WGGGbFURH2fJ54DV0qpvwnd9VIWUiQ8oK/BEmpQt6b5mySb36 RJpTCc5xhES3JP8kzCGjSdIldASq+bsPCgs0cS8nKg== X-Google-Smtp-Source: AMsMyM7y2fybyjF8xqHQ3WF4u/P/WodZtHTA0yfLi3ZD8hjcCB7MTyjj3NrQoPCgHIDLmutPE9+A3zZafUK8eXJHN9g= X-Received: by 2002:a05:6512:220a:b0:4a8:f91a:d7c3 with SMTP id h10-20020a056512220a00b004a8f91ad7c3mr6151894lfu.392.1666669181655; Mon, 24 Oct 2022 20:39:41 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Reply-To: Levi Morrison Date: Mon, 24 Oct 2022 21:39:30 -0600 Message-ID: To: =?UTF-8?Q?K=C3=A9vin_Dunglas?= Cc: internals@lists.php.net Content-Type: text/plain; charset="UTF-8" Subject: Re: [PHP-DEV] Proposal to incrementally improve timeout and signal handling From: internals@lists.php.net ("Levi Morrison via internals") This kind of thing requires careful thought. My first glance through it looks good and I definitely want PHP to stop abusing the SIGPROF signal because it prevents usage by actual profilers, which is annoying. Full disclosure: I write a profiler for my job. In addition, I think that there should probably be an internals API for handing out POSIX realtime signal numbers for platforms which support it. Quoting from the signal man page: > Unlike standard signals, real-time signals have no predefined > meanings: the entire set of real-time signals can be used for > application-defined purposes. One could interpret this as meaning we should also make it accessible to userland, but in line with the one step at a time approach, we can do that later if we decide we need to. But this is something an extension can't choose to do by itself: it must be done in core. I'll review the proposal sometime more carefully. Thanks for bring it up.