Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:94374 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 48972 invoked from network); 4 Jul 2016 22:00:37 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Jul 2016 22:00:37 -0000 Authentication-Results: pb1.pair.com smtp.mail=bishop.bettini@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=bishop.bettini@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.218.67 as permitted sender) X-PHP-List-Original-Sender: bishop.bettini@gmail.com X-Host-Fingerprint: 209.85.218.67 mail-oi0-f67.google.com Received: from [209.85.218.67] ([209.85.218.67:33550] helo=mail-oi0-f67.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 94/E1-30328-38CDA775 for ; Mon, 04 Jul 2016 18:00:35 -0400 Received: by mail-oi0-f67.google.com with SMTP id w141so25050057oia.0 for ; Mon, 04 Jul 2016 15:00:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:sender:in-reply-to:references:from:date :message-id:subject:to:cc; bh=qI4gTO+o7OkipgwIZBuUoGYkTaB5M/5cI1qns8kHsAw=; b=fIbUpilKX/sdXcdNSdlYx2vp3J/m2eJzC4j2xnnVHT0YtBrxSe92rgFuwpExu2SfjL 60eI6yzJM7F3kLBgvesa4M5UKyBWY/GFKFNWBezlByokL2Du4CweI1YRYiYw8rXFGRUx 0kqP982Q2jx+vPP/3Mzu82BcPw00JOXiDl9f+9vJgtADbYxv4r52bFZsPGAJU8CJ83Kh QD7W7qR5BzvbemqNLaRqiyek71gOHP5S/wHbZiEko5KtwEl2bFQ8wiLcon2l+LLi0Nrj stAKxbttyqLqUqz/ttmxTea2xv4ZY5N337PoE2UEqjejB++l6czSKse26K7jNRzRFu+l r1Gw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:reply-to:sender:in-reply-to :references:from:date:message-id:subject:to:cc; bh=qI4gTO+o7OkipgwIZBuUoGYkTaB5M/5cI1qns8kHsAw=; b=NB4yVTt3r/6SvIajAJAUUE5HhgCbw9AvWQtroVnDl/8TPVancPPKb0d2u4QOeaqjzL JxLNBvWJ4x9QQvXMBg2vp3bpAU4f5Js2YHEleK3N3eNR9JO7D3PiipiomkBoLoEkzUde 5OGeHDbF/A5aRDCCwwML6wLCdb2Pn+WAs+CEBI3tGJDTD3k/vIe3+j3+w++FFukcxnIG A8eIW+7Q7w2noKCORlWxvY2DhluP0txKl64tGI5B9A5XAcCKzUMiuzJTGJvcMFszpIT1 WlK1BVKEYsJVcD79hCDQPeOm3NFJeflcI4ssxvX38/0Y9ZXeMzARh9mZ9n8AGn8dNAa1 Dy+A== X-Gm-Message-State: ALyK8tKHXznDub7VyXMmZAFhaGb2jLUKdkUKZI81KP0n9gQ58c7O2YbJJRAtSIJJazVrekXYjoFivLIRjxo30w== X-Received: by 10.202.229.9 with SMTP id c9mr7929469oih.42.1467669631780; Mon, 04 Jul 2016 15:00:31 -0700 (PDT) MIME-Version: 1.0 Reply-To: bishop@php.net Sender: bishop.bettini@gmail.com Received: by 10.157.42.164 with HTTP; Mon, 4 Jul 2016 15:00:02 -0700 (PDT) In-Reply-To: References: Date: Mon, 4 Jul 2016 18:00:02 -0400 X-Google-Sender-Auth: PQ3HIm-jyCx44YylNkY-yZTjJFU Message-ID: To: PHP internals Cc: David Walker Content-Type: multipart/alternative; boundary=001a11406d2a0ccc570536d6775c Subject: Re: [RFC] Additional context in pcntl_signal handler (was Re: [PHP-DEV] pcntl_signal & sa_siginfo) From: bishop@php.net (Bishop Bettini) --001a11406d2a0ccc570536d6775c Content-Type: text/plain; charset=UTF-8 On Thu, Jun 23, 2016 at 1:18 PM, Bishop Bettini wrote: > Hi All, > > David and I would like to propose a second array argument be added to > signal handlers registered with pcntl_signal > . The array passes > through kernel-provided signal context like the process ID sending the > signal. > > https://wiki.php.net/rfc/additional-context-in-pcntl-signal-handler > > RFC links to an implementation. Please try it out and let us know your > thoughts. This only adds an argument, so no BC break. Maybe too late, but > it'd be great to get this in 7.1. > > On Mon, Jun 13, 2016 at 2:18 PM, David Walker wrote: > >> Hi All, >> >> Long-time lurker, first time questioner here. I'm currently working on a >> project wherein I end up forking off many subprocesses, but am trying to >> keep tabs on the progress of individual forks by having the children send >> a >> signal back up to their parent every so often. >> >> pcntl_socket, allows me to listen for expected user signals from >> processes, >> however, the handler only allows a single argument the signalnumber. I >> would like to extend the handler to accept a possible second argument. If >> compiled on a system with __siginfo_t it would use SA_SIGINFO when setting >> up the signal listener, and populate a second argument to the >> user-callback >> which could be an array with at leas sa_pid and sa_uid (contents of >> _kill). >> >> So I'd like to source the list to see if this would be something that >> would >> be welcomed, or if there would be other ideas on how to get some more info >> of the signal back to the PHP-side of the pcntl_signal. > > Following a suggestion made earlier, sending notice that voting on this RFC will open in a few days. The discussion so far has been recorded in the RFC. Thoughts appreciated! --001a11406d2a0ccc570536d6775c--