Message ID | 20230503102218.785289-1-sbabic@denx.de |
---|---|
State | Accepted |
Headers | show
Return-Path: <swupdate+bncBCXPLOXJ6IKRBYPLZCRAMGQE2MSIBQY@googlegroups.com> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=googlegroups.com (client-ip=2a00:1450:4864:20::23e; helo=mail-lj1-x23e.google.com; envelope-from=swupdate+bncbcxploxj6ikrbyplzcramgqe2msibqy@googlegroups.com; receiver=<UNKNOWN>) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=googlegroups.com header.i=@googlegroups.com header.a=rsa-sha256 header.s=20221208 header.b=OMZATkTU; dkim-atps=neutral Received: from mail-lj1-x23e.google.com (mail-lj1-x23e.google.com [IPv6:2a00:1450:4864:20::23e]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4QBCgY6Bgyz20fg for <incoming@patchwork.ozlabs.org>; Wed, 3 May 2023 20:22:32 +1000 (AEST) Received: by mail-lj1-x23e.google.com with SMTP id 38308e7fff4ca-2a9f9b317cfsf24505601fa.2 for <incoming@patchwork.ozlabs.org>; Wed, 03 May 2023 03:22:32 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1683109346; cv=pass; d=google.com; s=arc-20160816; b=qqePAv1lLb0gn0chj9MvB3rFSZALmlyqhMqrWt5IFsHi15E8twMXw/dcHGxu8fet8t XHiHycpWjSmWURDuG7q4AnCtttVV3xbXvrKCvWby7TC29OhADT52jQofAO/KgEMl+JL8 KPR2XeEQG6XyDrLOg3w7dKKl+xcogC0+Sj7bslU/Hg29ZEKbMVcK5DIPESQbkQ2JzTiP 5xW0fT/m3hDiJ+g5woNIwKFD5iIAw459GSZAQgeZMN7FPq+TUEwSNmVxhRm3I2dqYsr6 KqqaP+vgFmatk/SVNICn4x9dE1qXwcsHk+S8grYWU+AaEE86j71UKjKEidK6uC1tDQ8U kfQw== 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=bHhdsBLkUx2NR4pr4rCh+2wDoZmL579eRAJ5SsXnB30=; b=iOJY9PKbNCn9ts/VqA7Ex0GTz6gYmEBNhwn9ttxus9X6WrQMkADyR1hKwpfP8Etsbw CYyuxwmCjlK8SQls3ovhF6hYemh8Xmc7Rv89W/XW2OKFLkSOw1QsE8PMcGEXm/g4x5Wn dhD0gYo+BpdFyY5hwNAtECkaYDj/1aQY0mnfU0nfTW4R9WUQ2nZFK3pP3XDSVrn2Um6K tCT3bGWFTpzpFYfRyJxrvH15aamt9cngy688erjCIGypILVozwV3b0+NS5DvEnu7HxiS N7l+hln11kyuU5dcMiUd6PgAxLGV28h45oPN0T8s+Q/oNMZqJHEsZbBcfcLfBC9NRYtY fuZA== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=neutral (google.com: 2001:a60:0:28:0:1:25:1 is neither permitted nor denied by domain of sbabic@denx.de) smtp.mailfrom=sbabic@denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20221208; t=1683109346; x=1685701346; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:x-original-authentication-results :x-original-sender:mime-version:message-id:date:subject:cc:to:from :sender:from:to:cc:subject:date:message-id:reply-to; bh=bHhdsBLkUx2NR4pr4rCh+2wDoZmL579eRAJ5SsXnB30=; b=OMZATkTUfTH+ch/wTEtnvg1/q8pTBhX1uS1xQdc1ztILiiXBYl/RKKXMIKEGpVa7oP ox8c7p8ZU6CBH1jpzVugDkTFfM/SaXNBHgff3dWGTU7QSLLk7siM8F4d72KEDJ2ZGZPa gN67KI1axsVVgJxJnvuq2pZEG9A0awxEjBbaC3UogDvC/bLoRlaC3UPhIXtjmkBx/3Jh EF7ubj9RvTlpaWvtWUk1vg5uqw+/hmfPH0ACSeeOh274F4nfzE7EHRTXyvJNkwVEdNg5 urUtnF0qs2Z4kTSFfL1rDqktx9Wvx0Gn2iQ9Fq7MECKuU1Tg4ObZEbMFrky5VeinGOLF nAnA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683109346; x=1685701346; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender:mime-version :message-id:date:subject:cc:to:from:x-beenthere:x-gm-message-state :sender:from:to:cc:subject:date:message-id:reply-to; bh=bHhdsBLkUx2NR4pr4rCh+2wDoZmL579eRAJ5SsXnB30=; b=V6azQCHXMUnO8Gh5OXyOheRwB/dkAF3PosuK6TWK14gp2B0il0rTYqS3xcMtsgrHmq UoWUmjwDqiZjh7pdFQwWcfOcr76OFM299fs8ID3X8NnTIwQYUsdk1aDCJHnoL6noKP/K r2nes/sMM1ryCq0Njoc9lzN98/+0r7GhECdjnlNbajtYXVyuUkmaTukv8UfU/OK3Wwlu kTDpie2zKbFVrZovu2BnyC5fcDYY4e+IGYS9hN6bYdLJ3lqYmfle2uR1hSW2tZb7qEsD 7HvaPLEy/ZY1CIuRFxNR6sutzInfU5Rjv5ZvRFDthNlwjqqjqdilGXA8GihuoGUN+5A1 uJGA== Sender: swupdate@googlegroups.com X-Gm-Message-State: AC+VfDzdYrwc2zihXYq/pR7g2HEfjGDEC6hehGi1MAiKXQc6AARasowK PDTt4LnqYkv4Ftrr1LSFRJk= X-Google-Smtp-Source: ACHHUZ49hysDSCnVsbDPDGklNcyhn8fTZRwqV5F5FnFGoAjYOpTOvOeooQmDnUQlyr5+Hu9fN5hmEg== X-Received: by 2002:ac2:5dc3:0:b0:4ec:9e3f:7fb7 with SMTP id x3-20020ac25dc3000000b004ec9e3f7fb7mr705814lfq.12.1683109346429; Wed, 03 May 2023 03:22:26 -0700 (PDT) X-BeenThere: swupdate@googlegroups.com Received: by 2002:a05:6512:4017:b0:4ed:bafc:b947 with SMTP id br23-20020a056512401700b004edbafcb947ls285420lfb.2.-pod-prod-gmail; Wed, 03 May 2023 03:22:24 -0700 (PDT) X-Received: by 2002:ac2:4d0a:0:b0:4a4:68b9:1a14 with SMTP id r10-20020ac24d0a000000b004a468b91a14mr734692lfi.60.1683109344793; Wed, 03 May 2023 03:22:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683109344; cv=none; d=google.com; s=arc-20160816; b=pdPFyyOsdRgc+aEnps66Ml0N7OgR69AJKSft8QdCxGEi4Atd1KYymNYEoEHUypdbMk hyQIdiBBmhV8Dqa4GvCCQpHlztdAGCaKvnK/UGfD5oODihkht9706JtI1SYmiGkssOhh lRxD+EcjKuWCv+AO08X0QVMYmnAiicMnNfGtiCCctLt3yquRMbhYgtpqrc2FLSekGB7x R/rBxddTZ2n84ghPuMCqcFYeVm1IYWfbs3n2eoKDfeaIOIE2Qx/ozjR+bgdKosb890nn sfBOyakGxP86t6afLM3P4SZX7JCB9d2YMx1KMY0hgOK9pdrP9cWQTel4evC9LDP7Pa/X iVbg== 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=tQsHZL8flbiArBJ5Qsz2PE6LxLGzAG0eXje1dw063n0=; b=YtesaNhprhhMRMUm6YkqVzR1nnuMawfUieKjnQNnG7TMq4useP2AfVjFaA1Pv3dlQI AbvnAiLJFStTu6MuNIIGJUCYnN+xluPeT6d+zXyxmL+Wi8VnP5MJ03IZnu25pxjkFair Jvhdu77eDLwzQcAGOhhBC/yamb/hNJqrhF5k15c0u6ixaGvwkooPTByt1YGQRPL5WK4F KwdYphAoMyODkOMtZHrFc1z1tmkyv8CKb2aRNe3hn/mJ6tuGwk8jMWo/Z93PwkafLwOU Um1FPgQTRp+F5vU6XXRbPPje9bjmi51+Bctc/mNQFqennXUpxoS2lS98Iw1DbjCJhRLT s+Qw== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=neutral (google.com: 2001:a60:0:28:0:1:25:1 is neither permitted nor denied by domain of sbabic@denx.de) smtp.mailfrom=sbabic@denx.de Received: from mail-out.m-online.net (mail-out.m-online.net. [2001:a60:0:28:0:1:25:1]) by gmr-mx.google.com with ESMTPS id h28-20020a0565123c9c00b004f13b703015si49418lfv.6.2023.05.03.03.22.24 for <swupdate@googlegroups.com> (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 03 May 2023 03:22:24 -0700 (PDT) Received-SPF: neutral (google.com: 2001:a60:0:28:0:1:25:1 is neither permitted nor denied by domain of sbabic@denx.de) client-ip=2001:a60:0:28:0:1:25:1; Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 4QBCgN1LHJz1sCJ1; Wed, 3 May 2023 12:22:24 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 4QBCgN0llLz1qqlS; Wed, 3 May 2023 12:22:24 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id zktKemjMlKmi; Wed, 3 May 2023 12:22:23 +0200 (CEST) Received: from babic.homelinux.org (host-88-217-136-221.customer.m-online.net [88.217.136.221]) (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 mail.mnet-online.de (Postfix) with ESMTPS; Wed, 3 May 2023 12:22:22 +0200 (CEST) Received: from localhost (mail.babic.homelinux.org [127.0.0.1]) by babic.homelinux.org (Postfix) with ESMTP id 7DF094540DC6; Wed, 3 May 2023 12:22:22 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at babic.homelinux.org Received: from babic.homelinux.org ([IPv6:::1]) by localhost (mail.babic.homelinux.org [IPv6:::1]) (amavisd-new, port 10024) with ESMTP id e4CTrnusZQjV; Wed, 3 May 2023 12:22:20 +0200 (CEST) Received: from paperino.fritz.box (paperino.fritz.box [192.168.178.48]) by babic.homelinux.org (Postfix) with ESMTP id 2DF054540A91; Wed, 3 May 2023 12:22:20 +0200 (CEST) From: Stefano Babic <sbabic@denx.de> To: swupdate@googlegroups.com Cc: Stefano Babic <sbabic@denx.de> Subject: [swupdate] [meta-swupdate][PATCH] Return 0 from SystemV script Date: Wed, 3 May 2023 12:22:18 +0200 Message-Id: <20230503102218.785289-1-sbabic@denx.de> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Original-Sender: sbabic@denx.de X-Original-Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: 2001:a60:0:28:0:1:25:1 is neither permitted nor denied by domain of sbabic@denx.de) smtp.mailfrom=sbabic@denx.de 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 |
[meta-swupdate] Return 0 from SystemV script
|
expand
|
diff --git a/recipes-support/swupdate/swupdate/swupdate b/recipes-support/swupdate/swupdate/swupdate index 9e6a8bf..06b287d 100644 --- a/recipes-support/swupdate/swupdate/swupdate +++ b/recipes-support/swupdate/swupdate/swupdate @@ -90,13 +90,7 @@ do_stop() { ;; esac - # Wait for children to finish too if this is a daemon that forks - # and if the daemon is only ever run from this initscript. - # If the above conditions are not satisfied then add some other code - # that waits for the process to drop all resources that could be - # needed by services started subsequently. A last resort is to - # sleep for some time. - return $status + return 0 } #
Using SystemV, the stop function does not exit with 0 after SWUpdate is termintated. This is due indirectly to commit f8372f31. Force the status to zero because after killing the processes, there are not other resources to be freed. Signed-off-by: Stefano Babic <sbabic@denx.de> --- recipes-support/swupdate/swupdate/swupdate | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-)