Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:102114 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 75097 invoked from network); 17 May 2018 08:58:00 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 May 2018 08:58:00 -0000 Authentication-Results: pb1.pair.com header.from=oneil@saxonica.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=oneil@saxonica.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain saxonica.com from 94.136.40.143 cause and error) X-PHP-List-Original-Sender: oneil@saxonica.com X-Host-Fingerprint: 94.136.40.143 mailex.mailcore.me Received: from [94.136.40.143] ([94.136.40.143:59734] helo=mailex.mailcore.me) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 47/B8-16557-5144DFA5 for ; Thu, 17 May 2018 04:57:58 -0400 Received: from [82.152.109.221] (helo=[10.0.0.7]) by smtp04.mailcore.me with esmtpa (Exim 4.89) (envelope-from ) id 1fJEjS-00092r-KO for internals@lists.php.net; Thu, 17 May 2018 09:57:55 +0100 Content-Type: multipart/alternative; boundary="Apple-Mail=_34350818-F8AF-4BAD-A6B4-573F9F324FED" Message-ID: <01563BB9-9FFE-46A7-8860-ABAC51366DE9@saxonica.com> Date: Thu, 17 May 2018 09:57:55 +0100 To: PHP internals Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) X-Mailer: Apple Mail (2.3124) X-Mailcore-Auth: 439400269 X-Mailcore-Domain: 1881035 X-KLMS-Rule-ID: 1 X-KLMS-Message-Action: clean X-KLMS-AntiSpam-Status: not scanned, license restriction X-KLMS-AntiPhishing: not scanned, license restriction X-KLMS-AntiVirus: Kaspersky Security 8.0 for Linux Mail Server, version 8.0.1.721, bases: 2018/05/17 03:29:00 #8420598 X-KLMS-AntiVirus-Status: Clean, skipped Subject: Help please: child processes are not killed when PHP is done From: oneil@saxonica.com (O'Neil Delpratt) --Apple-Mail=_34350818-F8AF-4BAD-A6B4-573F9F324FED Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Hi All, I am experiencing a strange behaviour in my PHP extension. My setup: = Ubuntu LTS 16, Apache 2.4, PHP 7.0.30 (tested with PHP 7.1.17) and = latest Saxon-HE/C 64bit. Observed behaviour is that Apache spawns a couple of child processes as = soon as Saxon is invoked. Problem is that those child processes are not = killed when PHP is done. Code Gives the output: Process ID: 5591 Number of threads: 1 =E2=80=94=E2=80=94=E2=80=94=E2=80=94= =E2=80=94=E2=80=94=E2=80=94 Number of threads: 9 Running that code snippet, I see that additional 9 child threads are = running, but they stay alive until I manually kill them. Source code of php extension: = https://dev.saxonica.com/repos/archive/opensource/latest9.8/hec/Saxon.C.AP= I/php7_saxon.cpp = = --Apple-Mail=_34350818-F8AF-4BAD-A6B4-573F9F324FED--