From patchwork Fri Apr 22 23:59:39 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dominique Martinet X-Patchwork-Id: 1621282 Return-Path: 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=NLU1JfZf; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=googlegroups.com (client-ip=2607:f8b0:4864:20::c3b; helo=mail-oo1-xc3b.google.com; envelope-from=swupdate+bncbcwivbv7sugrb7mcrwjqmgqee4usozq@googlegroups.com; receiver=) Received: from mail-oo1-xc3b.google.com (mail-oo1-xc3b.google.com [IPv6:2607:f8b0:4864:20::c3b]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4KlWcK2Rqtz9s0r for ; Sat, 23 Apr 2022 10:00:00 +1000 (AEST) Received: by mail-oo1-xc3b.google.com with SMTP id z4-20020a4a9c84000000b00329c324ddb7sf4652533ooj.22 for ; Fri, 22 Apr 2022 16:59:59 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1650671997; cv=pass; d=google.com; s=arc-20160816; b=rS4ZfQxtuHwMEaWWi+wZREy51r+SHwMPrgcyIe7n1USJQHZKSwBWl8efkm2su7tkCM 0pXG9+jXsjtKoMwopMV98ntdBz9FenjGEycnFI9BSfmjbT9o57houYBW5yGd+HLVBUqJ heEwSSdSAfFPaQsNyZMIFpdDvtjgXduhfzipS9/PNc3d1CXlcHdgSALhv43qbJMYqabq cZV2V2TD3V3/tmIfijBIWqV0rXERcN1XhBPPpeYZyS1HFpiOEw6ea/IbqRvqCVZmJu9t gcBaMGLrvAexIoSaeI6ICaOntem0yuZDGZXCUt+nXziE6RhqZHBVYKi9A2A1whW7Z3Ng vlUQ== 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:message-id:date :subject:cc:to:from:sender:dkim-signature; bh=63oK6v5f+y1CoG7+RQ7HsdxwORbay8S5BwHDx/fGdyY=; b=fRto7JR49tBzif1uGag5R/7peziLmFeRnhnUsHSwT/ipfcXkWPGUg6PA7IF6jOQDZv EBnN9vZKBtjY0c8sJh0O/tXrPaLjHtiH+WbqYjnCe0ZZUkWZCjj6mP9qtEU0DkFV//KH nyyvRvuKoJ7pdYQPR0lSvY4lskJ+Qjkn8XLvHX/357TCxcyo2ulmaGmP67FQmSFxh05b Q+TjEiX6Uvl5aYgb5ncExThx6rjYLQz3eh2sOi/vcYHlawZzmwcgDEv8sLDV+PaAr/dG wtk7MZIoZQwmqs4Av/FsguN3DbnHk5y4AzCToCMgFBuwI+3mH7a8/4akHMXm1kco7TRZ mxrw== 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: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=63oK6v5f+y1CoG7+RQ7HsdxwORbay8S5BwHDx/fGdyY=; b=NLU1JfZfjSqkIDsi7/Nau2WJjv7yPwWASaesKn3f6FLFiL1dKnCoe+6DEKwvtyS8qp R1uZQBK7FcfSJboIxW9qIXgJ0oh6FVLEAS8hawXqr8J9nHz9KDIMv/fI1OK/2AJl/esO MB/aqqLKby7t5drAm73pwtLNj/5nJhkInTJrmkQJkqr9M5A8eWbf7X0HR39jtXczaR/l VkFjXw9eP4BZzBRNBnXZSyRLxPD+nt5ZL6++zY4OhtPZszYE5924pIRWfy8grcEG4V86 rCF+5W4pzanw+MAnZrTCZzRyiOHENTpCsvLd/eKJG3eaO7s6FZXSkd/LrZ7K+DdpEc8Y JXNQ== 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 :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=63oK6v5f+y1CoG7+RQ7HsdxwORbay8S5BwHDx/fGdyY=; b=d1+qw8Fe+7U+omqMEd6nq7u7E98AMwe3ZvVuXwsvVVKfic5NfP/YkKVAG/8t1PCcBs X42oBxYOjkryARdNu6D11mJshnBaHTG5Neh4uH8WJXcNjbZaOBD/SPKERNQVhiymywnU uhEuMNZTJvJ7wgsAWnprUyXDT99/rD8+EdkJQuv5Wfd+SgXz+MErMsgfGFwdfkN6w/Nc g9i+Cc7E7ezkNo4di8jm4mbNaGgMCQOzxrEkpYPusZHnJw9wKiDxKpOHku9766AtcAKR nCpZcBCMs2WMi6k5r1UkWi57hLBGBYDJ8tuFSATXvJRf0uf7khvsVLg51tn9dotck2RC hotQ== Sender: swupdate@googlegroups.com X-Gm-Message-State: AOAM532IcNcpNDpB4qvhdZK2IqxWyOH6ZzH+xVgkjjwDaKzv+/UR5S46 MqdV/I14QwK769ZZnfp6Qxc= X-Google-Smtp-Source: ABdhPJwXZTe/V15qySftwf4AgjiIsnXkJ5WeWQmOwyXXGklWmkQcytUob097FtyQyZlHHxlluG8V5w== X-Received: by 2002:a05:6830:1388:b0:604:cd7d:6b74 with SMTP id d8-20020a056830138800b00604cd7d6b74mr2695639otq.290.1650671997475; Fri, 22 Apr 2022 16:59:57 -0700 (PDT) X-BeenThere: swupdate@googlegroups.com Received: by 2002:a05:6830:181:b0:601:cc83:6913 with SMTP id q1-20020a056830018100b00601cc836913ls474273ota.0.gmail; Fri, 22 Apr 2022 16:59:57 -0700 (PDT) X-Received: by 2002:a9d:12a8:0:b0:605:52fb:5f26 with SMTP id g37-20020a9d12a8000000b0060552fb5f26mr2692476otg.297.1650671997061; Fri, 22 Apr 2022 16:59:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650671997; cv=none; d=google.com; s=arc-20160816; b=Qi/2OkRiawzTLUGDRY2Ke6IEFZbHacYEvDwkU3N08RPAaHUBpk5l37DVeeiPZARh7a yyh4SD2az5wEwX0z4Oa28ltHEEMNuwVI8ehLw5rIit4FvW2XpNzvHCe3r5ru3OJ6vLBd FPlCkKlyMsgGie6nUhgfrxHnrpAEO63i3/c9n6O+k6AvnpCiu9s7Y1j4c+b/b4me1qPv vYUE6MipdRlvNggtvsIwSi4a97vatZ00f6l1f3PdAax0h3DBNXf7moKpyN3QnzbiSbn8 ZGMhnayNkcm170tWxhH9ftcCFhi1RIIYoiXQRCH+LnIVvjw9SdHrRSdAWVWfC1SZah97 kAHQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from; bh=/W5gCYun8b+mq0v/2p0Cackc29FbG98dJQNDuau7Vzk=; b=gqXh+poDR8ZHg6NVhzaTWHAsI6QdUU2CDqSAuuoQI56c2pCNUaQSdO4GRUJE1RcBHl d+/Xhn370gy8RVpWHhh2ZuOk9h9cLh5sB3RwKvgXLsF1tP2fZmyeEsSMbkJYpfl8Z6zg L+kWeCZ0vhJ3udJMGx28+BBxOscU0W6/UF3DGUKvEYgkqZkqln/JB659zeFIjBS1Uxxp RAx/JJj/VM65OMVWLfyIc4FefjDr3/fScYLLEFgRCXmjj8uijZt+pk7knR5UtL7e6OhQ /fpCN0wDN4C6/nEwAUQ7P/OGMu3Ib30iuYpfqpmEa53LA4XilxZCElFN/PODtXra2PqB QQuw== 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 be15-20020a056808218f00b003227a4ecc4asi1264921oib.3.2022.04.22.16.59.56 for ; Fri, 22 Apr 2022 16:59:56 -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 240FD20D69 for ; Sat, 23 Apr 2022 08:59:55 +0900 (JST) Received: from mail-pl1-f197.google.com (mail-pl1-f197.google.com [209.85.214.197]) by gw2.atmark-techno.com (Postfix) with ESMTPS id 0694820D66 for ; Sat, 23 Apr 2022 08:59:55 +0900 (JST) Received: by mail-pl1-f197.google.com with SMTP id q6-20020a170902eb8600b001588e49dcaaso5580058plg.9 for ; Fri, 22 Apr 2022 16:59:54 -0700 (PDT) X-Received: by 2002:a17:90a:e7cb:b0:1d2:194d:8744 with SMTP id kb11-20020a17090ae7cb00b001d2194d8744mr19057034pjb.71.1650671994041; Fri, 22 Apr 2022 16:59:54 -0700 (PDT) X-Received: by 2002:a17:90a:e7cb:b0:1d2:194d:8744 with SMTP id kb11-20020a17090ae7cb00b001d2194d8744mr19057019pjb.71.1650671993827; Fri, 22 Apr 2022 16:59:53 -0700 (PDT) Received: from pc-0115 (126.88.200.35.bc.googleusercontent.com. [35.200.88.126]) by smtp.gmail.com with ESMTPSA id p27-20020a056a000a1b00b004f3f63e3cf2sm4295500pfh.58.2022.04.22.16.59.51 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 22 Apr 2022 16:59:51 -0700 (PDT) Received: from martinet by pc-0115 with local (Exim 4.95) (envelope-from ) id 1ni3Bm-00BmZE-5h; Sat, 23 Apr 2022 08:59:50 +0900 From: Dominique Martinet To: swupdate@googlegroups.com, sbabic@denx.de Cc: Dominique Martinet Subject: [swupdate] [PATCH 1/6] sigchld_handler: report child exit status correctly Date: Sat, 23 Apr 2022 08:59:39 +0900 Message-Id: <20220422235944.2808227-1-dominique.martinet@atmark-techno.com> X-Mailer: git-send-email 2.35.1 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 Precedence: list Mailing-list: list swupdate@googlegroups.com; contact swupdate+owners@googlegroups.com List-ID: X-Spam-Checked-In-Group: swupdate@googlegroups.com X-Google-Group-Id: 605343134186 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Signed-off-by: Dominique Martinet --- core/pctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/pctl.c b/core/pctl.c index 2a09d9807e3a..ed5d49bbbf01 100644 --- a/core/pctl.c +++ b/core/pctl.c @@ -429,7 +429,7 @@ void sigchld_handler (int __attribute__ ((__unused__)) signum) hasdied = 0; if (WIFEXITED(status)) { hasdied = 1; - printf("exited, status=%d\n", WIFEXITED(status)); + printf("exited, status=%d\n", WEXITSTATUS(status)); } else if (WIFSIGNALED(status)) { hasdied = 1; printf("killed by signal %d\n", WTERMSIG(status));