From patchwork Wed Jul 10 08:28:44 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "fhoerni.opensource" X-Patchwork-Id: 1958758 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org 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=20230601 header.b=Zi1bsxYX; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=googlegroups.com (client-ip=2607:f8b0:4864:20::237; helo=mail-oi1-x237.google.com; envelope-from=swupdate+bncbaabbi4vxg2amgqebbcnktq@googlegroups.com; receiver=patchwork.ozlabs.org) Received: from mail-oi1-x237.google.com (mail-oi1-x237.google.com [IPv6:2607:f8b0:4864:20::237]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4WJs1k0nzFz1yNy for ; Wed, 10 Jul 2024 18:47:37 +1000 (AEST) Received: by mail-oi1-x237.google.com with SMTP id 5614622812f47-3d9db343109sf138398b6e.0 for ; Wed, 10 Jul 2024 01:47:37 -0700 (PDT) ARC-Seal: i=3; a=rsa-sha256; t=1720601252; cv=pass; d=google.com; s=arc-20160816; b=RJlEC6sR1o84yrEpNc3OVtzkvHi0O2bSlaqqPDmxQo85gmRbPbICu5SCSgwX5M9IBT nncgwFdJb5AA3ylmgO0EzP6LU9UPa0cEWo5t+3ZeMrE50HfYZKOteJPlBw/u9nP3cJUW Arc2hKOkw/b1zLcBYN6vt1w0p4QhBoh81ScQRTp4J21C6Y/RO9wxRjsdZELzkJ+bzY0i 8+1fgnQiw4cc+FMLiSwN8hdaJvx/EYn4AYTK4MW0PzUfbHvutF2fmqwIgFmeG1VjtY5Y 6zfGp4xtjCVGcWYx0PKv9I9F2Q5F0r0LE9YlnAHN/Nf2d2LszWXB7rvZyPcnr2COUaAI 9kpw== ARC-Message-Signature: i=3; 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:reply-to:mime-version:organization :subject:from:to:content-language:user-agent:date:message-id :dkim-signature; bh=s1nnGgE+4+kzMPNkU7ZEbYzIqH2oROsGyvO9vbNs+C4=; fh=OwmalbWzn++MHhvlJFbY57ymsQPFq/0G+pMAMj/6/Gc=; b=sY/wYr6zZA2BmNUd8pTxjOGzJkUWZ83cQtJppNi8LKXZusoBp3lLeR2DVtTuQqbECT uVOKBpmrlT5WKL9Xg/eO0Dw8ucCd2qbqhG1IE07VWPoSuovVCaHErpXW6iQbip998Mw5 0QoDBIvd8a19KUebK0gkN2VJDpAOGNUDs6rhoW18lxHaXdb83naCUPJcEv45JMgY/uC0 ZaY/Zw624FUyIhkOGXCqcigJQRARU4lqf/L8uB5A/jIrfLej16QFAercqidQzMDw5S3f JEKPpHKd4rZG3TH1d2GIkHz9nrdTQJSHI3a+dMAnml3dbPK4i+NJ8jbD1U+BNWUQ/NLe wKGg==; darn=patchwork.ozlabs.org ARC-Authentication-Results: i=3; gmr-mx.google.com; dkim=pass header.i=@witekio.com header.s=selector2 header.b=rBBs57or; arc=pass (i=1 spf=pass spfdomain=witekio.com dkim=pass dkdomain=witekio.com dmarc=pass fromdomain=witekio.com); spf=pass (google.com: domain of fhoerni@witekio.com designates 2a01:111:f400:7e1a::729 as permitted sender) smtp.mailfrom=fhoerni@witekio.com; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=witekio.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20230601; t=1720601252; x=1721206052; darn=patchwork.ozlabs.org; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:mime-version :organization:subject:from:to:content-language:user-agent:date :message-id:from:to:cc:subject:date:message-id:reply-to; bh=s1nnGgE+4+kzMPNkU7ZEbYzIqH2oROsGyvO9vbNs+C4=; b=Zi1bsxYXo2qCdhKiaHD/bXpNwxxT+7vRBSVLaDnc7b5GtH+CToNch1YvLvMOUqJADH zytkXwWr0HJ8RZH71TKhGN/8OAScTVJ6sWuFhJMep6Ow2WbfV0kWVUX9kKwcn7zKDdTB WD/CkpbKVa0kqMOmyveSIpM9lJ1c1Bph8GgbCk4KeiNI/grniaC49EiuD42sp2+tMKU+ MQjQExLcJDPIIrKIHzPYhqndqdLBolqpo40sFA2QqVFifLu0lrdHjbZRj7MFG0iKq5LO RQ3mMccadM1qiWcPBwLI9kFxD6C5yPd+HtqpJ49teehizRTziEC4ADBcPqP/AtZ9w3GM Vd7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720601252; x=1721206052; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:mime-version :organization:subject:from:to:content-language:user-agent:date :message-id:x-beenthere:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=s1nnGgE+4+kzMPNkU7ZEbYzIqH2oROsGyvO9vbNs+C4=; b=fsA8LQB99L4HVcqmYt8DBDBNXZLKg6CZZFG0RGqppJmKhPG2b2wplcsDB/ts0FWTLW Qrpcm5WcUv4pj6WKaxt4yH+8WjrVPek+C6L2c36QhEaiHH2tWkhCWR7uUB7bGUTmnaAW I/ahR2leNpUSHGpxG59EcZ7jqZ2vUSbsQMk1fV96ApokdyTuYDPh71obSrKtU6f+ISSH XQMY68TeieAm5VFAYI8Miav8v6fAxkE4aW1DD6X8hNCux5XPseNUwEU4WH6+nFk1ZHCF gm5frrHVKvYkqPZFzeFMg2Z2xThKHGcFxsPnS9MglT1q5Ygrw5eTKFuSKUjK3eaZkV4N 0XpA== X-Forwarded-Encrypted: i=3; AJvYcCXJALmpFX5jp4BPrfIP0iGdpp/xCbX8ed7D2eIQdRerDcgAJcyxUTHvNOpUBiQo+Oe503WkRVVu+41RzBcTaEODohWlECaa+7V0KTJE4Q== X-Gm-Message-State: AOJu0Yy9lfHroOfw9zLoUo0uontovAmGqk/TaKjLm8X8xzs2SeZh4Mj9 AV/gU3shimhNeQe1HiXl5Dezj5ZLlfTJEDNivJJQ7wbyA8Mh2Oin X-Google-Smtp-Source: AGHT+IHgE4bHPVtnXafDGkT6Sv00NQYz+f5NDhNUxr4BwLdEJJXgK3h2VmHxx/RqzPNPiygUX2gMqQ== X-Received: by 2002:a05:6870:658b:b0:25e:1817:e4a8 with SMTP id 586e51a60fabf-25eaecafefemr4834664fac.4.1720601252032; Wed, 10 Jul 2024 01:47:32 -0700 (PDT) X-BeenThere: swupdate@googlegroups.com Received: by 2002:a05:6870:d390:b0:25e:21ca:4fa3 with SMTP id 586e51a60fabf-25e28532d40ls1942207fac.1.-pod-prod-08-us; Wed, 10 Jul 2024 01:47:31 -0700 (PDT) X-Received: by 2002:a05:6870:ec93:b0:25e:f72b:3384 with SMTP id 586e51a60fabf-25ef72b40f2mr199110fac.10.1720601251350; Wed, 10 Jul 2024 01:47:31 -0700 (PDT) Received: by 2002:a05:6808:dc1:b0:3d9:3291:87dc with SMTP id 5614622812f47-3d9dd831feamsb6e; Wed, 10 Jul 2024 01:28:50 -0700 (PDT) X-Received: by 2002:a05:6a21:329f:b0:1c1:61a9:de65 with SMTP id adf61e73a8af0-1c298205fb4mr5561958637.9.1720600129660; Wed, 10 Jul 2024 01:28:49 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1720600129; cv=pass; d=google.com; s=arc-20160816; b=hIAVynJxU/x+QccOhh/VuR7Hv8N/gPxz5F3Toe0+XMGaKIc3lbHcwznYOeBW75XXIf 9+3D04dsJavMCpWH4jYPJMM91EPGNZz59is+OVyvutspQzgCg+J13yMFhCoiHdOBAzRM z6jnxDXoPH2MzimKUxRukXUPT6iGiI+tkikjCVqxEaWOknFJHj0CzHWIlwxr35nRjTCH Q6DoIWwNCELihRAppweTWw6U66ZVSPB0h9lwnAw4rrnTaYCwpTATsPDb6lpTd4lY12y5 T8v9uvw64+RTK6gko0LdTnsuk8pVLIVp2+gZjs7SWJJvVDpirNVdy0QueAl8zxgWrgqE a29A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:content-transfer-encoding:organization:subject:from:to :content-language:user-agent:date:message-id:dkim-signature; bh=W+K5MDbQQXCk5ORnMyEwuQKlafNLSQD8xWs1Ch2X4rg=; fh=nvZsCFpxgpf+fsVXzjnWA8g1K3V/kNbRAKogjNDW4HY=; b=Aryvt49CfUOy1dKdeYwgfxe599EiCvaIIM8x1rsF98MwNCwULTTKim+hdfaApur6kc Yo5MpodkZJiq+FughYyJC6Jw5xhvAeiVrpf5FG1rljfkUm4uK23l/MM5q/hWBrGjAVbl Y6cgU9AVtCIbcXQVBRXEMulldevWsyS/JLp6BXAo+7MHuBD6W/cKKhxrp92kulFljE+O 5fMlVcDH20L91zIctRrttWAj2G41scLudV0Xlc1W9p172mYDPi3GuLvlmLRuBZunDEy1 ykuyrxIx5Ie/T+E4gogHV7TLJUadO2OHiNaVDF9dvEgLvqECfjNVJIucBTDsDgz+M7Qi 9h8Q==; dara=google.com ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@witekio.com header.s=selector2 header.b=rBBs57or; arc=pass (i=1 spf=pass spfdomain=witekio.com dkim=pass dkdomain=witekio.com dmarc=pass fromdomain=witekio.com); spf=pass (google.com: domain of fhoerni@witekio.com designates 2a01:111:f400:7e1a::729 as permitted sender) smtp.mailfrom=fhoerni@witekio.com; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=witekio.com Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on20729.outbound.protection.outlook.com. [2a01:111:f400:7e1a::729]) by gmr-mx.google.com with ESMTPS id 98e67ed59e1d1-2ca85cb171csi32006a91.1.2024.07.10.01.28.48 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 10 Jul 2024 01:28:49 -0700 (PDT) Received-SPF: pass (google.com: domain of fhoerni@witekio.com designates 2a01:111:f400:7e1a::729 as permitted sender) client-ip=2a01:111:f400:7e1a::729; ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=IlAbWH1VLaQplE0Ke/0led3uJLa24JVy8tlG9lZA3ia7KSkcDiHoMl3HMfql36YdbUcfgaVNqWA/bxJdpbKyviG9XSwCA4WHfsts07I2ikJTeeMqz4dYTaqW7QPhTTgsu8i9pcKL7TcsTaRNZWvSNAvgAVFpGxWTzHcSLBLHB0JQx4VSFccbFkxZIUkLd9QYTH4nNH5DaPLGWb+WpZFmvaFSu1hSJdjHV2dYcXlFFbcEMqcdNXbNo6pJxOg5YK58DmXCZXfiuB3kW2AT8+5hFUVw8sAHICrlPPFQ9U2Bqh8hVEBvsmQSaF8z3cydTdH84Xb2uv+jFnI4vZWVSvZc4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=W+K5MDbQQXCk5ORnMyEwuQKlafNLSQD8xWs1Ch2X4rg=; b=HT3NapEWvpzcf8tfH1C0a7NssGSlSQSWufzR997GZ7aDtwB4i6+Ii/RbGasoxCxEp+4l5LDvWCYAgdU/A0qNBMz7or+25y3nzetEAFau7sBm8KccyGq3MD5Gylqs1g20b7f0oFxEYh06fUJrQ46jiZQVr7Qkm1yiCIdZ9TGELgHkwRROMH+mGvXNuo39QpE/pmm+oAHfIZ3N+OFqaYrMBBXcokb63oCs8yPCqXatWiJ443cyOjwOr1jEwS0NP84MeAMo2iQIRSn0Tx9cyQBvLsf/t2SdqBmk7SifT9WYB5OQpRLXCV/QCiz6/dOZNjkxU455H9xGyfMM6FBaNCg/7g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=witekio.com; dmarc=pass action=none header.from=witekio.com; dkim=pass header.d=witekio.com; arc=none Received: from PAWP192MB2225.EURP192.PROD.OUTLOOK.COM (2603:10a6:102:359::22) by PR3P192MB0827.EURP192.PROD.OUTLOOK.COM (2603:10a6:102:2b::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7762.20; Wed, 10 Jul 2024 08:28:45 +0000 Received: from PAWP192MB2225.EURP192.PROD.OUTLOOK.COM ([fe80::8a5a:c9f5:c976:7b14]) by PAWP192MB2225.EURP192.PROD.OUTLOOK.COM ([fe80::8a5a:c9f5:c976:7b14%3]) with mapi id 15.20.7741.033; Wed, 10 Jul 2024 08:28:45 +0000 Message-ID: Date: Wed, 10 Jul 2024 10:28:44 +0200 User-Agent: Mozilla Thunderbird Content-Language: en-US To: swupdate@googlegroups.com X-Patchwork-Original-From: "'Frederic Hoerni' via swupdate" From: "fhoerni.opensource" Subject: [swupdate] [PATCH] Fix REQ_INSTALL/GET_STATUS synchronization Organization: Witekio X-ClientProxiedBy: PR1P264CA0141.FRAP264.PROD.OUTLOOK.COM (2603:10a6:102:2ce::20) To PAWP192MB2225.EURP192.PROD.OUTLOOK.COM (2603:10a6:102:359::22) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAWP192MB2225:EE_|PR3P192MB0827:EE_ X-MS-Office365-Filtering-Correlation-Id: f02d1035-eeef-446a-5a52-08dca0ba5034 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|1800799024|376014; X-Microsoft-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FT65uQXqUnxju1Errpp/DQAv2Z2j/KwsxRA0PHo95nTpkBo?= =?utf-8?q?AxCbDBca/E5UeKBfTwyh1q5mlO6q3te9PozNzh14vm+Xo06sy9JjIGLiq5ni7J53B?= =?utf-8?q?soS4YSq22PW5NgzQ9Fkm0ALF44BoWkfjwxTtVo1SCbghCAl1ilZrhNZDpPdOnW9fb?= =?utf-8?q?/JvZFWsKPE2GhKoqp1tyVvMrXxzpSXRLvRPU8C6lvbH05KsIr7B7gTUPqhBbCkOQr?= =?utf-8?q?Zf66zUq7TuS9nw1s3Fb3mSCEVyZ3vtIYnIpddq4iwXan1utCgk18YO7rFqt/ksdFI?= =?utf-8?q?Pzi7lRE9aSPIIxz3LAsLbesuAuJnU8v3/eBX18moZR6Mb/qSRYpo4aAkdz/ImWen1?= =?utf-8?q?IgC6odc3Prw/f4lZ2JYJrEHQYLxAoRm2n5/8j68f4qBS50lUt0n+le8vgR+WevRSy?= =?utf-8?q?KPnovTHzNzgH6RwRgt83mf6HC8PMr+jcgew=3D=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PAWP192MB2225.EURP192.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(13230040)(366016)(1800799024)(376014);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?iWKaSm6t5T5dV28K4tnsm6CJ9uNS?= =?utf-8?q?EiIcQAS5OLTNWu4gpSVm40W87H81Eg/BfyZ/sDAyTJMX5UFWhtAL4WpteXnDuv/Qj?= =?utf-8?q?4YFl17GtoBg1k5R9XOKLuAZXMNOik3NSALsZGzxZOJmoY3RNE4zspckEylwY1aP2C?= =?utf-8?q?dl8ufkUfwx1m2FjNMCHywt4541T1uYb7aZ3LvMJa8VhQIcKqwHJFBU8TT09NpwzGM?= =?utf-8?q?t5+9WguQVQcV2FEojDE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v80xhlmoDDrnD6wftBKnsOQFuMZUyNZxoO?= =?utf-8?q?sauy0qMR5XyshebIP/wi9ZZG/RcEX0OGFkRYVsIARFL3Be4gp/SQusryBGNPbnrQ/?= =?utf-8?q?HBviz6s2+J+ZlHTYvehXGAw4NLFqi6eb5TpEr1lqwA0B0AP5NUf9UA/Dpsc96iiC1?= =?utf-8?q?PunVevpp3uPDqXG/AO1fkLtY+ZJW4QdO2gf4CA7V7RHtCE6jpOxV0xn3+zajiqpQr?= =?utf-8?q?5dM3QfDNUUQ0GTDqR4Tws9dSfZ7ytaiyXWU6hT/Wdj/tL0jfqvrYttD7FF2+U5zYo?= =?utf-8?q?DX5sHTTYtfcZXuD0RpSFqpBcH1HBDUQUExruv1Za6c6j3i245WY6aOS7nUAWVMBwl?= =?utf-8?q?U+mUJiU9f/DLv4zDm8XliJM4vlhEcraJmmVIdYzIoPY8ULccGxZui8FxRq6WmYkMF?= =?utf-8?q?OGZ+LJOLIjO3?= X-OriginatorOrg: witekio.com X-MS-Exchange-CrossTenant-Network-Message-Id: f02d1035-eeef-446a-5a52-08dca0ba5034 X-MS-Exchange-CrossTenant-AuthSource: PAWP192MB2225.EURP192.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Jul 2024 08:28:45.1100 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 317e086a-301a-49af-9ea4-48a1c458b903 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: tMhpdhhU/iyrp7FTEgIS58jkDM5amnR1KrN1+YvDc7raWK7J/Fy6TKDRa6u54n8uKbsdekxgT4OHi12QvpUVjg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PR3P192MB0827 X-Original-Sender: fhoerni.opensource@witekio.com X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@witekio.com header.s=selector2 header.b=rBBs57or; arc=pass (i=1 spf=pass spfdomain=witekio.com dkim=pass dkdomain=witekio.com dmarc=pass fromdomain=witekio.com); spf=pass (google.com: domain of fhoerni@witekio.com designates 2a01:111:f400:7e1a::729 as permitted sender) smtp.mailfrom=fhoerni@witekio.com; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=witekio.com X-Original-From: Frederic Hoerni Reply-To: Frederic Hoerni Precedence: list Mailing-list: list swupdate@googlegroups.com; contact swupdate+owners@googlegroups.com List-ID: X-Google-Group-Id: 605343134186 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , From time to time, there was an install error raised by swupdate-client when the daemon processed GET_STATUS too quickly after a REQ_INSTALL: - when starting, inst.last_install=0, inst.status=IDLE - swupdate-client: * sends REQ_INSTALL to the daemon * ... followed by the payload (the image), which is buffered by the OS * ... and swupdate-client continues its execution whereas the daemon has not started receiving the payload so far * sends REQ_STATUS to the daemon to get the progress status - swupdate daemon: * receives REQ_INSTALL and sends ACK * (1) receives GET_STATUS and answers with inst.last_install=0, inst.status=IDLE * (2) notifies another thread that sets inst.status=RUN and proceeds with the installation - swupdate-client: * receives GET_STATUS with inst.last_install=0, inst.status=IDLE * ... and considers this as a failure, and exits with code 1 (error) - swupdate daemon: * continues normally and succeeds The fact that (1) occurs before (2) is the root cause of the issue as it gives a wrong information to the client. It happens when the thread "network_thread" re-acquires the mutex before pthread_cond_wait (in the thread "network_initializer") re-acquires it himself (the re-acquiring of the mutex is not said atomic in the man page). This has been seen on some machines with a swu image of 20480 bytes. Other improvements: - remove useless stream_wkup - move locking to before starting the other thread in order not to miss the first signal - do not release the mutex between status=IDLE and pthread_cond_wait in order not to miss a signal Signed-off-by: Frederic Hoerni --- core/network_thread.c | 4 +++- core/stream_interface.c | 24 ++++++++++-------------- include/network_interface.h | 1 - 3 files changed, 13 insertions(+), 16 deletions(-) diff --git a/core/network_thread.c b/core/network_thread.c index d7b713fb..e033f3ab 100644 --- a/core/network_thread.c +++ b/core/network_thread.c @@ -486,8 +486,10 @@ void *network_thread (void *data) /* Drop all old notification from last run */ cleanum_msg_list(); + /* Switch to RUN */ + instp->status = RUN; + /* Wake-up the installer */ - stream_wkup = true; pthread_cond_signal(&stream_cond); } else { msg.type = NACK; diff --git a/core/stream_interface.c b/core/stream_interface.c index 5f3ad2e3..59449815 100644 --- a/core/stream_interface.c +++ b/core/stream_interface.c @@ -67,7 +67,6 @@ static pthread_t network_thread_id; * reception of an install request * */ -bool stream_wkup = false; pthread_mutex_t stream_mutex = PTHREAD_MUTEX_INITIALIZER; pthread_cond_t stream_cond = PTHREAD_COND_INITIALIZER; @@ -533,6 +532,9 @@ void *network_initializer(void *data) inst.status = IDLE; inst.software = software; + /* Lock in order not to miss the first signal (before pthread_cond_wait) */ + pthread_mutex_lock(&stream_mutex); + /* fork off the local dialogs and network service */ network_thread_id = start_thread(network_thread, &inst); @@ -543,12 +545,7 @@ void *network_initializer(void *data) ret = 0; /* wait for someone to issue an install request */ - pthread_mutex_lock(&stream_mutex); - while (stream_wkup != true) { - pthread_cond_wait(&stream_cond, &stream_mutex); - } - stream_wkup = false; - inst.status = RUN; + pthread_cond_wait(&stream_cond, &stream_mutex); pthread_mutex_unlock(&stream_mutex); notify(START, RECOVERY_NO_ERROR, INFOLEVEL, "Software Update started !"); TRACE("Software update started"); @@ -731,13 +728,6 @@ void *network_initializer(void *data) swupdate_remove_directory(DATADST_DIR_SUFFIX); #endif - pthread_mutex_lock(&stream_mutex); - inst.status = IDLE; - inst.req.source = SOURCE_UNKNOWN; - pthread_mutex_unlock(&stream_mutex); - TRACE("Main thread sleep again !"); - notify(IDLE, RECOVERY_NO_ERROR, INFOLEVEL, "Waiting for requests..."); - /* * Last step, if no restart is required, * SWUpdate can send automatically the feedback. @@ -768,6 +758,12 @@ void *network_initializer(void *data) ipc_send_cmd(&msg); } + pthread_mutex_lock(&stream_mutex); + inst.status = IDLE; + inst.req.source = SOURCE_UNKNOWN; + /* Keep stream_mutex locked until pthread_cond_wait */ + TRACE("Main thread sleep again !"); + notify(IDLE, RECOVERY_NO_ERROR, INFOLEVEL, "Waiting for requests..."); } diff --git a/include/network_interface.h b/include/network_interface.h index 0a60cad4..53e7fa44 100644 --- a/include/network_interface.h +++ b/include/network_interface.h @@ -9,6 +9,5 @@ void *network_initializer(void *data); void *network_thread(void *data); -extern bool stream_wkup; extern pthread_mutex_t stream_mutex; extern pthread_cond_t stream_cond;