Message ID | 20210116072101.38203-5-andrew.gregory.8@gmail.com |
---|---|
State | Accepted, archived |
Headers | show
Return-Path: <pacman-dev-bounces@lists.archlinux.org> Delivered-To: patchwork@archlinux.org Received: from mail.archlinux.org [2a01:4f9:c010:3052::1] by patchwork.archlinux.org with IMAP (fetchmail-6.4.14) for <fetchmail@localhost> (single-drop); Sat, 16 Jan 2021 07:30:24 +0000 (UTC) Received: from mail.archlinux.org by mail.archlinux.org with LMTP id UOQPBw2WAmAXxAQAK+/4rw (envelope-from <pacman-dev-bounces@lists.archlinux.org>) for <patchwork@archlinux.org>; Sat, 16 Jan 2021 07:30:21 +0000 Received: from luna.archlinux.org (luna.archlinux.org [5.9.250.164]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits)) (No client certificate requested) by mail.archlinux.org (Postfix) with ESMTPS id DBF8E3756EB; Sat, 16 Jan 2021 07:30:19 +0000 (UTC) Received: from luna.archlinux.org (luna.archlinux.org [127.0.0.1]) by luna.archlinux.org (Postfix) with ESMTP id 8DDD62C5B1; Sat, 16 Jan 2021 07:23:32 +0000 (UTC) Received: from luna.archlinux.org (luna.archlinux.org [127.0.0.1]) by luna.archlinux.org (Postfix) with ESMTP id A6C2A2C503 for <pacman-dev@lists.archlinux.org>; Sat, 16 Jan 2021 07:23:29 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on luna.archlinux.org X-Spam-Level: X-Spam-Status: No, score=-1.4 required=5.0 tests=AC_FROM_MANY_DOTS=0.497, DKIM_SIGNED=0.1,DKIM_VALID=-0.1,DKIM_VALID_AU=-0.1,FREEMAIL_FROM=0.5, RCVD_IN_DNSWL_MED=-2.3,T_DMARC_POLICY_NONE=0.01, T_DMARC_SIMPLE_DKIM=0.01 autolearn=failed autolearn_force=no version=3.4.4 X-Spam-BL-Results: <dns:206.137.207.98.zen.spamhaus.org> [127.0.0.10] <dns:206.137.207.98.dnsbl.sorbs.net> [127.0.0.10] <dns:61.189.216.95.list.dnswl.org> [127.0.9.2] Received: from mail.archlinux.org (mail.archlinux.org [95.216.189.61]) by luna.archlinux.org (Postfix) with ESMTPS for <pacman-dev@lists.archlinux.org>; Sat, 16 Jan 2021 07:23:29 +0000 (UTC) Received: from mail-pl1-x635.google.com (mail-pl1-x635.google.com [IPv6:2607:f8b0:4864:20::635]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.archlinux.org (Postfix) with ESMTPS id EF2233756B5 for <pacman-dev@archlinux.org>; Sat, 16 Jan 2021 07:23:28 +0000 (UTC) Received: by mail-pl1-x635.google.com with SMTP id b8so5889155plx.0 for <pacman-dev@archlinux.org>; Fri, 15 Jan 2021 23:23:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=UiEMezqPzavHIGcgTEIdeIibxkmdgpJQgqBxl1CifL8=; b=sCM/8HAnJoSKIF2cExuuY0LgT/6pvWhcloP2GPMExLc7OTmlSnnUXkNBB68JObpJwL Ad6d4z3HoCFon+MSA1h53HHtBF1j2W960AqeXYiCmJVDIrmFbDroqD/r8zblrwMp6ST6 PqTdzbpiXXA7zdXguBeIARbAE9J9kcOksCKn/9LGVZRffdO3beYt1gfU0iFZRjl1ey5v HcaIEqM4XM289EXqHKX1Qgb8rmbKXI0BiFixJfl+mz44a44hRSDbYFjnXUnXL/mlYds5 hRgXin4Gh02acAMZiDYNQ+jwewMcfU8tS1KZHG/t7Lv2s4MaJ7Q5gmOMuYbNVA+QaHN1 QdBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=UiEMezqPzavHIGcgTEIdeIibxkmdgpJQgqBxl1CifL8=; b=FZLRZkEoh4uaWShbZEHwLfM9ofsFIzTW71BpZzcWJ8hKnL0ZBVtLK6uUZzpnKAQHeI nqeH3BqkJ9N6qAkQgTzRwTcu7G+IN/cVKzvzDa9fbp0xLV0TT1kABd4T9gvvLXMIgCRT oZ7FP3xkxk8RKqALPLUkqG5Wo2hilSCN8J37WxTdmLjlhmKo9Q1h8WcQoPXH3RFR/DPP AfWoQwbdIuNF2kSHqYBr2Hb9Oos1et0lN2jPLYUcJQ3Bj9BCqm42r3VICqS5eBTD1B5P eY3gLbPYGufeKDBrWMrisKuytKE+DTWr23YaDD6JOSOwJ2DgU2o72wNVM6LFc2kdfRyF nvkA== X-Gm-Message-State: AOAM532Yxp0euzJqccL69hL8x7n3Ow4yAsDj4sUcIAYEpTEa8nBtDPdw w2UA1BGSyzheh6fOsju5oaP+vUHaNDU= X-Google-Smtp-Source: ABdhPJz5b+Mks81rNXu/j8RQt9l4FfeBq6+tUc1Sy/4CRPcsrf9PhPzvpIaenHN0POqVEuBmXY6LXg== X-Received: by 2002:a17:90a:aa0c:: with SMTP id k12mr14867712pjq.155.1610781807068; Fri, 15 Jan 2021 23:23:27 -0800 (PST) Received: from localhost.localdomain (c-98-207-137-206.hsd1.ca.comcast.net. [98.207.137.206]) by smtp.gmail.com with ESMTPSA id w25sm3850001pfg.103.2021.01.15.23.23.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Jan 2021 23:23:26 -0800 (PST) From: Andrew Gregory <andrew.gregory.8@gmail.com> To: pacman-dev@archlinux.org Cc: Andrew Gregory <andrew.gregory.8@gmail.com> Date: Fri, 15 Jan 2021 23:20:59 -0800 Message-Id: <20210116072101.38203-5-andrew.gregory.8@gmail.com> X-Mailer: git-send-email 2.30.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [pacman-dev] [PATCH 5/7] sighandler: initialize sigaction fields X-BeenThere: pacman-dev@lists.archlinux.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Discussion list for pacman development <pacman-dev.lists.archlinux.org> List-Unsubscribe: <https://lists.archlinux.org/options/pacman-dev>, <mailto:pacman-dev-request@lists.archlinux.org?subject=unsubscribe> List-Archive: <https://lists.archlinux.org/pipermail/pacman-dev/> List-Post: <mailto:pacman-dev@lists.archlinux.org> List-Help: <mailto:pacman-dev-request@lists.archlinux.org?subject=help> List-Subscribe: <https://lists.archlinux.org/listinfo/pacman-dev>, <mailto:pacman-dev-request@lists.archlinux.org?subject=subscribe> Reply-To: Discussion list for pacman development <pacman-dev@lists.archlinux.org> Errors-To: pacman-dev-bounces@lists.archlinux.org Sender: "pacman-dev" <pacman-dev-bounces@lists.archlinux.org> Authentication-Results: mail.archlinux.org; dkim=fail (headers rsa verify failed) header.d=gmail.com header.s=20161025 header.b=sCM/8HAn; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (mail.archlinux.org: domain of pacman-dev-bounces@lists.archlinux.org designates 5.9.250.164 as permitted sender) smtp.mailfrom=pacman-dev-bounces@lists.archlinux.org X-Rspamd-Queue-Id: DBF8E3756EB X-Spamd-Result: default: False [4.59 / 15.00]; HAS_REPLYTO(0.00)[pacman-dev@lists.archlinux.org]; RCVD_VIA_SMTP_AUTH(0.00)[]; GREYLIST(0.00)[pass,meta]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:5.9.250.164:c]; R_DKIM_REJECT(1.00)[gmail.com:s=20161025]; FREEMAIL_FROM(0.00)[gmail.com]; BROKEN_CONTENT_TYPE(1.50)[]; R_MISSING_CHARSET(2.50)[]; NEURAL_SPAM(0.00)[0.996]; DKIM_TRACE(0.00)[gmail.com:-]; RCPT_COUNT_TWO(0.00)[2]; MAILLIST(-0.20)[mailman]; RECEIVED_SPAMHAUS_PBL(0.00)[98.207.137.206:received]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:24940, ipnet:5.9.0.0/16, country:DE]; MID_RHS_MATCH_FROM(0.00)[]; TAGGED_FROM(0.00)[]; ARC_NA(0.00)[]; FROM_NEQ_ENVFROM(0.00)[andrewgregory8@gmail.com,pacman-dev-bounces@lists.archlinux.org]; FROM_HAS_DN(0.00)[]; TAGGED_RCPT(0.00)[]; REPLYTO_DOM_NEQ_FROM_DOM(0.00)[]; MIME_GOOD(-0.10)[text/plain]; HAS_LIST_UNSUB(-0.01)[]; FREEMAIL_CC(0.00)[gmail.com]; RCVD_COUNT_SEVEN(0.00)[7]; FORGED_SENDER_MAILLIST(0.00)[]; DMARC_POLICY_SOFTFAIL(0.10)[gmail.com : SPF not aligned (relaxed),none] X-Rspamd-Server: mail.archlinux.org |
Series |
[pacman-dev,1/7] pacman: indicate --overwrite takes a glob
|
expand
|
diff --git a/lib/libalpm/util.c b/lib/libalpm/util.c index 9ae08745..3fbd757a 100644 --- a/lib/libalpm/util.c +++ b/lib/libalpm/util.c @@ -562,7 +562,9 @@ static void _alpm_reset_signals(void) 0 }; struct sigaction def; + def.sa_flags = 0; def.sa_handler = SIG_DFL; + sigemptyset(&def.sa_mask); for(i = signals; *i; i++) { sigaction(*i, &def, NULL); } diff --git a/src/pacman/sighandler.c b/src/pacman/sighandler.c index ff9c6ac4..9794b30b 100644 --- a/src/pacman/sighandler.c +++ b/src/pacman/sighandler.c @@ -106,6 +106,7 @@ static void segv_handler(int signum) /* restore the default handler */ _reset_handler(signum); /* unblock SIGSEGV */ + sigemptyset(&segvset); sigaddset(&segvset, signum); sigprocmask(SIG_UNBLOCK, &segvset, NULL); /* re-raise to trigger a core dump */
Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com> --- lib/libalpm/util.c | 2 ++ src/pacman/sighandler.c | 1 + 2 files changed, 3 insertions(+)