From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id kPq+M9Cr4GAI4QAAgWs5BA (envelope-from ) for ; Sat, 03 Jul 2021 20:26:24 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id GE9kL9Cr4GBHFQAAB5/wlQ (envelope-from ) for ; Sat, 03 Jul 2021 18:26:24 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 33FF417391 for ; Sat, 3 Jul 2021 20:26:24 +0200 (CEST) Received: from localhost ([::1]:53252 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lzkLP-0004BL-6u for larch@yhetil.org; Sat, 03 Jul 2021 14:26:23 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39290) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lzkL4-0004AI-L1 for bug-guix@gnu.org; Sat, 03 Jul 2021 14:26:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:56538) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lzkL4-0000IV-CX for bug-guix@gnu.org; Sat, 03 Jul 2021 14:26:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lzkL4-0000ZA-AM for bug-guix@gnu.org; Sat, 03 Jul 2021 14:26:02 -0400 Subject: bug#45202: pcscd service doesn't respond to SIGTERM Resent-From: Brice Waegeneire Original-Sender: "Debbugs-submit" Resent-To: bug-guix@gnu.org Resent-Date: Sat, 03 Jul 2021 18:26:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 45202 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Raffael Stocker Mail-Followup-To: 45202@debbugs.gnu.org, brice@waegenei.re, r.stocker@mnet-mail.de Received: via spool by 45202-done@debbugs.gnu.org id=D45202.16253367572160 (code D ref 45202); Sat, 03 Jul 2021 18:26:02 +0000 Received: (at 45202-done) by debbugs.gnu.org; 3 Jul 2021 18:25:57 +0000 Received: from localhost ([127.0.0.1]:39849 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lzkKy-0000Yl-PT for submit@debbugs.gnu.org; Sat, 03 Jul 2021 14:25:57 -0400 Received: from relay7-d.mail.gandi.net ([217.70.183.200]:54725) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lzkKr-0000YR-K4 for 45202-done@debbugs.gnu.org; Sat, 03 Jul 2021 14:25:52 -0400 Received: (Authenticated sender: brice@waegenei.re) by relay7-d.mail.gandi.net (Postfix) with ESMTPSA id 5F11120002; Sat, 3 Jul 2021 18:25:42 +0000 (UTC) From: Brice Waegeneire References: <87o8izhz9h.fsf@mnet-mail.de> <87ft4ak6rr.fsf@nckx> <87im96o881.fsf@mnet-mail.de> <87a6uij588.fsf@nckx> <87k0tlvsns.fsf@mnet-mail.de> Date: Sat, 03 Jul 2021 20:25:39 +0200 In-Reply-To: <87k0tlvsns.fsf@mnet-mail.de> (Raffael Stocker's message of "Mon, 14 Dec 2020 06:54:47 +0100") Message-ID: <87v95rcl0c.fsf_-_@waegenei.re> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: 45202-done@debbugs.gnu.org Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1625336784; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:resent-to:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post; bh=jU7zu5kiHjnFjjblXzUq0L9vswXVpVxGWXYYGHyzjpo=; b=AgWTXudpwyLAlvF49NlDeJP2usDnS3h+DKPt7MHfNDvtr+fcRyKf/mm0wOilFEy0ktmU38 4nXjcjz36S4XYYpSpq+OUConKj5P0lNkinezliEocbn4WYDVdRYuPx8sDjF+f2v3WZ+p4t rmS0skoQ14N6KY+ycM5JpNjNIexmhKycAM/NP6Wp1RrrFafMEgHtbWogpGit4bICnCYAdC +DKLGsD3Uk33xnCFObpgmu2XVNN0dOpeWZynu7SrwJ19gJnjr7GD03ekwOd8OOmEQ2zDFa kKmqP2/tJaPMOEdnpsluMAmvaTKVRFRzIok+TOinZ9XdfCQ0Kyw3PMhrEjRdMQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1625336784; a=rsa-sha256; cv=none; b=EpvOz5fmICCcQUusET25Vchu0BNdJZSsuoyXbXEc2PAgUnAQKAJKaeDAJ4BvOMIVShSAJc aEFNzgK08BdJDi8BFdBB/m+I8qEH7DOI0wQEfG/TLeGjGfBTyix3mZNu/eyWDi0Z5vfoH5 MUX286D2rfDX7IKKjpa6g9i2/m+eueWhEV+iCEUazu3qq1Q5SAltnWRbwTGgQL3NtaL9hr Zv9o1HlIsPvgRkVFUrykI8ldz99Esd7qsibL/X/pk2uKDk1+APrdCLl92tsaLXdM0bnRP+ ZOFdSJvwTCW55PgWDAB7hDGCaMEd1JOZEdmySeaqudTApmIffb52/3UKX7XdqA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Spam-Score: -2.41 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Queue-Id: 33FF417391 X-Spam-Score: -2.41 X-Migadu-Scanner: scn0.migadu.com X-TUID: FtmeQucLAnjW Hello Raffael, Raffael Stocker writes: > Interesting indeed. From looking at the source of pcsc-lite (main() in > pcscdaemon.c) it seems it's not modifying its sigmask. IIRC, child > processes inherit the parent's ignored signals, so if shepherd is > ignoring SIGTERM before a fork() and not resetting to default before an > exec(), pcscd will never receive the SIGTERM. This might explain the > behaviour. I have not checked shepherd's source to confirm. > > If this is so, it should probably be fixed in shepherd, right? Thank yu for the analysis of the issue, it helped me a lot to fix it. The sheperd pcscd serice wasn't using the correct procedure to start the daemon, it is fixed in e789ce538ed848bacb8f4eb5742f78b965ccf57c. Cheers, - Brice