Message ID | 20220530060304.1296389-6-dominique.martinet@atmark-techno.com |
---|---|
State | Accepted |
Headers | show
Return-Path: <swupdate+bncBCWIVBV7SUGRBSN42GKAMGQEN6DBMIA@googlegroups.com> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=googlegroups.com header.i=@googlegroups.com header.a=rsa-sha256 header.s=20210112 header.b=E56i6jmI; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=googlegroups.com (client-ip=2607:f8b0:4864:20::13b; helo=mail-il1-x13b.google.com; envelope-from=swupdate+bncbcwivbv7sugrbsn42gkamgqen6dbmia@googlegroups.com; receiver=<UNKNOWN>) Received: from mail-il1-x13b.google.com (mail-il1-x13b.google.com [IPv6:2607:f8b0:4864:20::13b]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4LBPx73WPbz9s0r for <incoming@patchwork.ozlabs.org>; Mon, 30 May 2022 16:03:55 +1000 (AEST) Received: by mail-il1-x13b.google.com with SMTP id l8-20020a056e021aa800b002cf778c63casf7832001ilv.10 for <incoming@patchwork.ozlabs.org>; Sun, 29 May 2022 23:03:55 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1653890633; cv=pass; d=google.com; s=arc-20160816; b=r4NUk7kDf/+S3bMxhaPwxo8xGBlOir70eE+Q9tvBbbZZYUADP0ONWgtRgo8Rs12Ayj MhSUyPnP/zav/Naviq8VjltP9Rt2jZc77BOykX60begLKpshDZaQP0hlNKNWQ6yGsPuO 1ePSx0m0RClW4bz8cCCnHV4u5kiFa51GZGcxrdf9xlT8Us4/mBkFuojmepHNtgUwCxUs oGzzWnG+1FkV0mbFNzjas/3RToA54IEru4IzI2bgwHgXZPNyZeBSceFZFs211n1M3ZKI 68qO30LX1UDYQ7pF+L+ROwEXWm0bpq2QrnR41ziK1Ubf0TyhCj0ntYesXZgztFiO+qlW 51fQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:dkim-signature; bh=PNXfXtYEeNVWHezEgecgmgpnI/S/iUQBGJAbo6seLTI=; b=kgzkxsB3ktjWcw7lyzy+jA7cfBCHnz6aMoT8LYDZ+jPOClTOHAGgvIX7jJXwwlMRHY QTkG7QkK73CDreW9IVxNeFOQR7ly5fY0b7VLJKMVhEl4BX9nRUQrldRmqFKsNTtabNfx 7Bc5bUccdM/DOMsGWOuiym5P25Q6mFNVD4F3zFT1RhTZtSkaolDhr0H7FZX8RJ8pIuT7 9cH0OGZcBj+6s2MsQvsjs8RsQ84GTjfmIuV1lJWNhAH5+BD41N3VYV96HCkp3kgNyiEJ KB6fHVWAwk9pZvfnQVSJ2YBj5dxYfkh1frFMXU+TwDDuvNjkgy/cxl4WRvvgnzMGy0qE VdwA== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of dominique.martinet@atmark-techno.com designates 35.74.137.57 as permitted sender) smtp.mailfrom=dominique.martinet@atmark-techno.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=PNXfXtYEeNVWHezEgecgmgpnI/S/iUQBGJAbo6seLTI=; b=E56i6jmIW7x669nSCly7klFQkZzICnOKFhDjCSq3/4fLZSiNpbGIRSBQt0NtRZBdBV 3mxRUGg3lGv+GuI3Eex/0izEjRbyVGN+ps7cvjnKAxuReJ5vfL1ldWmqM2ushTZm6T76 6jLCkbwEXngfCBYw6w8nIKJ8+gMaj1yjW9MteZKV8fPqGkXD6tQ21Dft7W0N5ZTsqFy/ sOgz0YSIghbOUvbH+6aWO+TKrQzAGFN3lt0P0KBqELWf+uCjwV5917CQBtJc1DVCyaWz tf4ZDAZgMe/CG+8F5NWmKANgxEcp4lY27q0iFdDhu/xtdnNuLAD89yTq9fSNLK1NVm/X GZ/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=sender:x-gm-message-state:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=PNXfXtYEeNVWHezEgecgmgpnI/S/iUQBGJAbo6seLTI=; b=E4xGy4lHDPg2HT04NF0TUG6Qx5JqOwS3uDlWJOPG1EByGdeRHD7KAkL+CNwDPtuI5G a509GCfiZyJ2/azpNCnZFzOYOY6/LaUL8YHKvZWI4BJeTJNIK+CWmrhrIB/uxm9uyhz1 3QIYP5yvj7b8khB92Xts+SiR2LmVV5lHa6mtWq6KybHv53JSrhIDQF4uK/jTjDgH/CU4 7PIQV31Wqtkk6ltafYPSkSlCfHQKPjH5dskaH8FLjKd68jBm8FQRsEoQmZ5oCl6wY450 GNPPAZJEmWI1jDvAjh1pwztuy/A73KWjnqxLqrCgg1DrsNyB41q1V6SA5Hx+M2mzF95R WvQQ== Sender: swupdate@googlegroups.com X-Gm-Message-State: AOAM531rPP94+DYHwbZ9GjQ/EGdIs9MeEcV12hj/wBhiqfx1nTipmLXL wMV5BC/gUwn69nIwvK9uIw0= X-Google-Smtp-Source: ABdhPJxFsVXcgySc2KhtZtnUaMc/ki7jD9qYyQXra/Y68HlwAWeBmdpx2fQfCR3QJTEITkd/g44GLQ== X-Received: by 2002:a05:6638:2688:b0:32e:c5ec:1b51 with SMTP id o8-20020a056638268800b0032ec5ec1b51mr20037423jat.100.1653890633312; Sun, 29 May 2022 23:03:53 -0700 (PDT) X-BeenThere: swupdate@googlegroups.com Received: by 2002:a05:6602:2e12:b0:665:7e29:64c1 with SMTP id o18-20020a0566022e1200b006657e2964c1ls1419625iow.1.gmail; Sun, 29 May 2022 23:03:52 -0700 (PDT) X-Received: by 2002:a6b:8f90:0:b0:65e:a211:b930 with SMTP id r138-20020a6b8f90000000b0065ea211b930mr20024388iod.35.1653890632851; Sun, 29 May 2022 23:03:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653890632; cv=none; d=google.com; s=arc-20160816; b=QMTo8JSHmuHkhbElzrnr2VG6IuRRB5aQikreuCPTM72s2RdH85yMtuwEqJ3E8wfhJd RnPBmMAr1f9VePtJeaTsKfmdbmdwZ/2SRLRMrDIoUsOd6RlTPHpXdNR+l2mPkKqmX3L/ v2l5its9HbwoBngDcoLM/OJku2SdvNUrlVfcJBDlm6e/ipZ7h/y1P3e44dP7u5PcFZo3 tWkf9LYZf/ZEq7R2F8T6YnAT3XA78V36Bu2e/lm/VyHwpWnIQX5S62y9ZfKbvcnUomuF UQsaDQqHHE9jD1ifUW+7RAb4yub5s9+ZZ0N7hj1l/zcvSHEPAXx6JJVXtSngh0lxgvUy zJtA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=BubweshuxN2ZCrfqOzSwLk0OTqfUQuWzBkNo/gN5Co0=; b=MSQfneES/ulJ6TgE8Id9GoQS4WOO5YQLUqjoSjIXdVaw4kl6TiTg7QYNrvFtJgabD5 VemEOgyKhKNPbCevsB6a2wKv3LGIfzCV6H/KumDnLb0+44V9LzEh4Amp4f7aSFPhXm2x 4uafaJAOjiZrosUR98/ijnsWmdUkpY0wW/csUdj3oMIyUYsWVCsus3URzaSYINm1/5MG ZndAY0NwO44G+3+2VCFN6BV0t7fFkiQyWDXJa41JeuuHKq/+GwoU9jTUewgV/6wEhshP hy18JVZG1vIWIwCb+ggoIOMlkaa/4/Vvvqc5MBVapM9nJBFoAwjh+MAFYB3QPlTELv8J kbqw== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of dominique.martinet@atmark-techno.com designates 35.74.137.57 as permitted sender) smtp.mailfrom=dominique.martinet@atmark-techno.com Received: from gw2.atmark-techno.com (gw2.atmark-techno.com. [35.74.137.57]) by gmr-mx.google.com with ESMTP id q4-20020a056638238400b0032e8c96c6f7si539974jat.6.2022.05.29.23.03.52 for <swupdate@googlegroups.com>; Sun, 29 May 2022 23:03:52 -0700 (PDT) Received-SPF: pass (google.com: domain of dominique.martinet@atmark-techno.com designates 35.74.137.57 as permitted sender) client-ip=35.74.137.57; Received: from gw2.atmark-techno.com (localhost [127.0.0.1]) by gw2.atmark-techno.com (Postfix) with ESMTP id 73BF520D6D for <swupdate@googlegroups.com>; Mon, 30 May 2022 15:03:51 +0900 (JST) Received: from mail-pj1-f71.google.com (mail-pj1-f71.google.com [209.85.216.71]) by gw2.atmark-techno.com (Postfix) with ESMTPS id 4132F20D6D for <swupdate@googlegroups.com>; Mon, 30 May 2022 15:03:51 +0900 (JST) Received: by mail-pj1-f71.google.com with SMTP id gn21-20020a17090ac79500b001dc8a800410so6145028pjb.0 for <swupdate@googlegroups.com>; Sun, 29 May 2022 23:03:51 -0700 (PDT) X-Received: by 2002:a17:902:e94e:b0:15b:22a7:f593 with SMTP id b14-20020a170902e94e00b0015b22a7f593mr55043924pll.148.1653890630404; Sun, 29 May 2022 23:03:50 -0700 (PDT) X-Received: by 2002:a17:902:e94e:b0:15b:22a7:f593 with SMTP id b14-20020a170902e94e00b0015b22a7f593mr55043910pll.148.1653890630169; Sun, 29 May 2022 23:03:50 -0700 (PDT) Received: from pc-0115 (126.88.200.35.bc.googleusercontent.com. [35.200.88.126]) by smtp.gmail.com with ESMTPSA id gi1-20020a17090b110100b001e095a5477bsm5895177pjb.33.2022.05.29.23.03.11 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 29 May 2022 23:03:13 -0700 (PDT) Received: from martinet by pc-0115 with local (Exim 4.95) (envelope-from <martinet@pc-0115>) id 1nvYUf-005RIS-5z; Mon, 30 May 2022 15:03:09 +0900 From: Dominique Martinet <dominique.martinet@atmark-techno.com> To: swupdate@googlegroups.com, sbabic@denx.de Cc: Dominique Martinet <dominique.martinet@atmark-techno.com> Subject: [swupdate] [PATCH 5/6] pctrl: parent_dead_handler: use _exit instead of exit Date: Mon, 30 May 2022 15:03:03 +0900 Message-Id: <20220530060304.1296389-6-dominique.martinet@atmark-techno.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220530060304.1296389-1-dominique.martinet@atmark-techno.com> References: <20220530060304.1296389-1-dominique.martinet@atmark-techno.com> MIME-Version: 1.0 X-Original-Sender: dominique.martinet@atmark-techno.com X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of dominique.martinet@atmark-techno.com designates 35.74.137.57 as permitted sender) smtp.mailfrom=dominique.martinet@atmark-techno.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list swupdate@googlegroups.com; contact swupdate+owners@googlegroups.com List-ID: <swupdate.googlegroups.com> X-Spam-Checked-In-Group: swupdate@googlegroups.com X-Google-Group-Id: 605343134186 List-Post: <https://groups.google.com/group/swupdate/post>, <mailto:swupdate@googlegroups.com> List-Help: <https://groups.google.com/support/>, <mailto:swupdate+help@googlegroups.com> List-Archive: <https://groups.google.com/group/swupdate List-Subscribe: <https://groups.google.com/group/swupdate/subscribe>, <mailto:swupdate+subscribe@googlegroups.com> List-Unsubscribe: <mailto:googlegroups-manage+605343134186+unsubscribe@googlegroups.com>, <https://groups.google.com/group/swupdate/subscribe> |
Series |
Fix gcc warnings or -fanalyzer warnings
|
expand
|
diff --git a/core/pctl.c b/core/pctl.c index 8f49de74ca06..a66c7d6793bc 100644 --- a/core/pctl.c +++ b/core/pctl.c @@ -63,7 +63,7 @@ static pthread_cond_t threads_towait_cond = PTHREAD_COND_INITIALIZER; #if defined(__linux__) static void parent_dead_handler(int __attribute__ ((__unused__)) dummy) { - exit(1); + _exit(1); } #endif
exit is not thread-safe and should not be used in a signal handler (could deadlock in e.g. glibc malloc/free if the signal comes during one) Reported-by: gcc -fanalyzer Signed-off-by: Dominique Martinet <dominique.martinet@atmark-techno.com> --- core/pctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)