Return-Path: X-Original-To: apmail-httpd-modules-dev-archive@minotaur.apache.org Delivered-To: apmail-httpd-modules-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 835579167 for ; Tue, 28 Feb 2012 21:06:17 +0000 (UTC) Received: (qmail 67628 invoked by uid 500); 28 Feb 2012 21:06:17 -0000 Delivered-To: apmail-httpd-modules-dev-archive@httpd.apache.org Received: (qmail 67575 invoked by uid 500); 28 Feb 2012 21:06:16 -0000 Mailing-List: contact modules-dev-help@httpd.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: modules-dev@httpd.apache.org Delivered-To: mailing list modules-dev@httpd.apache.org Received: (qmail 67566 invoked by uid 99); 28 Feb 2012 21:06:16 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 Feb 2012 21:06:16 +0000 X-ASF-Spam-Status: No, hits=1.7 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of benrockefeller5@gmail.com designates 209.85.214.173 as permitted sender) Received: from [209.85.214.173] (HELO mail-tul01m020-f173.google.com) (209.85.214.173) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 Feb 2012 21:06:09 +0000 Received: by obbup6 with SMTP id up6so4129955obb.18 for ; Tue, 28 Feb 2012 13:05:49 -0800 (PST) Received-SPF: pass (google.com: domain of benrockefeller5@gmail.com designates 10.182.89.65 as permitted sender) client-ip=10.182.89.65; Authentication-Results: mr.google.com; spf=pass (google.com: domain of benrockefeller5@gmail.com designates 10.182.89.65 as permitted sender) smtp.mail=benrockefeller5@gmail.com; dkim=pass header.i=benrockefeller5@gmail.com Received: from mr.google.com ([10.182.89.65]) by 10.182.89.65 with SMTP id bm1mr7360588obb.52.1330463149424 (num_hops = 1); Tue, 28 Feb 2012 13:05:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=pptWXvcZ3UY01PAE8OJh8Su9Bu2eaKbtZRz3ImnNQaM=; b=vn44sUbQbXPFwg8W1dz0PvaXSnmQN2gi83STk4cXV1VRbFvFNkMMWEWtnAHK4Vn/Ts ckLrSWSEeYJCn6lNcmdy1MmCyCHMK97IjjOTlcPpFZVCTfEmzSiWjv2tiKxpejTo6h/a E5Dv1e9Rnngerm/5kSgzxZ7tf2bBg2CIY/ZLM= MIME-Version: 1.0 Received: by 10.182.89.65 with SMTP id bm1mr6517090obb.52.1330463149352; Tue, 28 Feb 2012 13:05:49 -0800 (PST) Received: by 10.182.241.99 with HTTP; Tue, 28 Feb 2012 13:05:49 -0800 (PST) Date: Tue, 28 Feb 2012 13:05:49 -0800 Message-ID: Subject: Threads and signals in a module From: Ben Rockefeller To: modules-dev@httpd.apache.org Content-Type: multipart/alternative; boundary=f46d0447a0016765eb04ba0c977f X-Virus-Checked: Checked by ClamAV on apache.org --f46d0447a0016765eb04ba0c977f Content-Type: text/plain; charset=ISO-8859-1 Hello, I have a module which creates a thread using pthread_create and then registers for SIGRTMIN+4 signal from another process. Problem is I do not see a signal callback when the signal is sent to me. I only see it when I try to kill apache where just before dying it hits the signal callback. So something in Apache is blocking the signal. I am using worker MPM. What could be the issue. I do not have much leeway into changing the design of the module (the threading model comes from a separate lib which I link into the module)...but I can change to use a different signal than SIGRTMIN+4, etc. I can also change apache and recompile apache if needed. Please let me know if you have any suggestions. I have been stuck at this for a while now :-( Thanks --f46d0447a0016765eb04ba0c977f--