Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:93946 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 37707 invoked from network); 13 Jun 2016 18:18:44 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 13 Jun 2016 18:18:44 -0000 Authentication-Results: pb1.pair.com header.from=dave@mudsite.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=dave@mudsite.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain mudsite.com designates 209.85.223.196 as permitted sender) X-PHP-List-Original-Sender: dave@mudsite.com X-Host-Fingerprint: 209.85.223.196 mail-io0-f196.google.com Received: from [209.85.223.196] ([209.85.223.196:33611] helo=mail-io0-f196.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F6/11-12403-309FE575 for ; Mon, 13 Jun 2016 14:18:44 -0400 Received: by mail-io0-f196.google.com with SMTP id 5so17735325ioy.0 for ; Mon, 13 Jun 2016 11:18:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mudsite-com.20150623.gappssmtp.com; s=20150623; h=mime-version:from:date:message-id:subject:to; bh=E3KzTONE3t+Difpv1GD1XG5jw2+gLQXKCiCnvrO/SQE=; b=Su1rJNXy8VZXJB1wQRwUzbZh4bQnKypvowGGqBpsqTWbIPUTBVKCTJcIdBj2mFPdCQ Uo0FA/XV4pMwGfM4cJejHNsQ8AYXQQ0f75U1n97q2QHlXTTsKLkBEkQs4XCmcNoDxA7j cWcjUmLqQU2XMhHJDagiMPc5PS4hsCuDK916fVOj5uPgxTifnNpZFnEvzUAbG4SGr/DF qLQtHUcUOKwk3I8DCCvnejLBjcyKN1uXb43XM4BA5KGO/xqC+HdS4+8inzz/T7fbH+x1 BJmUTk4JPjqQ+ChkuJfW4C8IXUG6Yk5xGwWN/UpY4V1F8VhLm4Z4W8SWj3MuhOg/YN+4 gvpA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=E3KzTONE3t+Difpv1GD1XG5jw2+gLQXKCiCnvrO/SQE=; b=OIKE30J/eDzIyvRK1ne7OShiNn5NwcRD/pvsnW+txc7LLeiv+Ts049Hk4pNkqRpoet ZPSOyxsY+0QgR9CVdbARasrWuiZN35E2XyYTTMtKUHSD/4LJdC7fA+ugBAdQF+n9G0Wa VFjs1PY52RY2mhqTLVUCw1xolqVuqfeOlBTekq5FWOpw2B3XdcJbuiRaKhsqq36z0+MD dVGAqsxo5Z3Z2coVqdTIApX0xkh+2rBZF3CdD0V7sGk4GTDQ1DyjAxh+DFaYpr9I3ts8 RK2uvg/PEcQ6vlVp2u2cjhWoxpqpVLsJfQR6VAsd6QiWaLBkx3fvZ6s6tyZWyhvfClxk bDMQ== X-Gm-Message-State: ALyK8tKVrBK+6S1lMuRuLuM5KyyHuL2laZKVnaAtiveLAhCa5TOzSbtMVGGGdsAt7YGu6w+HcBTJibrNXfayCA== X-Received: by 10.107.22.131 with SMTP id 125mr24903120iow.128.1465841921620; Mon, 13 Jun 2016 11:18:41 -0700 (PDT) MIME-Version: 1.0 Date: Mon, 13 Jun 2016 18:18:31 +0000 Message-ID: To: internals@lists.php.net Content-Type: multipart/alternative; boundary=94eb2c05a27c0912c005352cebd9 Subject: pcntl_signal & sa_siginfo From: dave@mudsite.com (David Walker) --94eb2c05a27c0912c005352cebd9 Content-Type: text/plain; charset=UTF-8 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. -- Dave --94eb2c05a27c0912c005352cebd9--