Message ID | e2daf6db-385b-491d-a582-079879298a5c@witekio.com |
---|---|
State | Changes Requested |
Headers | show
Return-Path: <swupdate+bncBCLMHAFQ4QCRBT6USS4AMGQELZSUCBQ@googlegroups.com> 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=njMNFPFU; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=googlegroups.com (client-ip=2607:f8b0:4864:20::138; helo=mail-il1-x138.google.com; envelope-from=swupdate+bncbclmhafq4qcrbt6uss4amgqelzsucbq@googlegroups.com; receiver=patchwork.ozlabs.org) Received: from mail-il1-x138.google.com (mail-il1-x138.google.com [IPv6:2607:f8b0:4864:20::138]) (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 4XNG7H25xMz1xvB for <incoming@patchwork.ozlabs.org>; Tue, 8 Oct 2024 23:49:31 +1100 (AEDT) Received: by mail-il1-x138.google.com with SMTP id e9e14a558f8ab-3a392e9a8a4sf3313945ab.3 for <incoming@patchwork.ozlabs.org>; Tue, 08 Oct 2024 05:49:30 -0700 (PDT) ARC-Seal: i=3; a=rsa-sha256; t=1728391760; cv=pass; d=google.com; s=arc-20240605; b=Yn+rhEb0yKYVfd+PYQiaiA0QVGVVqR5FvX0QM0iRPfeZkN81mNhwVhSnXJrO0j15pz /UhnhjRQa9F0FspFUMOexssTB5wEiUEGqWxJsnsO5YvrBFsEN3GDIHg9FDc6+Qo78pXY LE842PBAwNyYtKbI0oOzCHxVWVVZeOSxaRNYDF4JlO8VonhAXWuiTPyVvUQvSBLrYJtW iOSuxEB7jZx6iGxH5x8L7ll0CXh2BzxfzEbJT8WwAPnqsxMx53gdqMtn+HL8Fe5iWsV5 mIgutXNn8NiRqMH8sg+foqUEY1jr7K0X+AInwJK/C5qdcxc+UIghcG27O2rKxHgTpcdy OJaA== ARC-Message-Signature: i=3; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:mime-version:in-reply-to :organization:from:content-language:references:to:subject:user-agent :date:message-id:dkim-signature; bh=m0lz/ND0f5CK0rON09mXObmHx4JoP1J5bNpGeBTtwTI=; fh=sYgGFzcDHHtRSgYyzp2a4IVlBF2nVf4rgqk1LqJc+0E=; b=NkZ7u565pXRZT5c/jd0X4w56jNb1CJWdOAh57ZR/bqSmBlFXpqZNpXZQ7DvH1L36G2 9AwPTYK/KLqXbidgjsC0XTZT5LvPZ4AdKZI7XmTl3bdfzxjWwJD8tN5Vn58ifok9Pl51 ZHRtojFvBCPYXABjLo6OVndeTeykqWVPM3gaghHO8Z0DKSM1npKQdB3UPcLwJD5jd7ux xCV9oxDFi7NzMSJ/64nkFX76cnpGT3P2gZbpFzEj6EnZhvfiIoUCkGBvbTbIHOU2xwYz bLbsFuDlSqPcXpbHFd8nZH/BJXFoKdk8V+NosOvTAPhLpszioQVl+YXFTtitveS347EB OuHA==; darn=patchwork.ozlabs.org ARC-Authentication-Results: i=3; gmr-mx.google.com; dkim=pass header.i=@witekio.com header.s=selector2 header.b=K4gYBL2p; 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:f403:2614::700 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=1728391760; x=1728996560; 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 :in-reply-to:organization:from:content-language:references:to :subject:user-agent:date:message-id:from:to:cc:subject:date :message-id:reply-to; bh=m0lz/ND0f5CK0rON09mXObmHx4JoP1J5bNpGeBTtwTI=; b=njMNFPFUGAN7rMNZd/9aWnPqHHHAmU+QZ08ZD2bBdZCdGT2t9LjGW3MNm+aGdk8KJr 9jCrNG7Xjm0tGt7T8CtX8r1ATWmOEEi6b/HTu8au+/aAcqYncqtNWXVDcVCCnceCFGsK eOI8LXhjnQOm0ZYitYhxxFq1Vu05ULkAfmua6tdhRzZchHCwqrSDmSEcGcWYUrT6sN1U BQx849h7OnvmuxpBHwWoqttHkHT4FYh1f+sKOmGxp8/Z9WrqF77mDtx1zuC87ptsNI7P lcltuCgENJgVJ7bQi1w475Vb0IwWkrTOuQnFB1A3FTUFgg4lMBcILG1Gpn+lmDBKzQdG 0z7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728391760; x=1728996560; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:mime-version :in-reply-to:organization:from:content-language:references:to :subject:user-agent:date:message-id:x-beenthere:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=m0lz/ND0f5CK0rON09mXObmHx4JoP1J5bNpGeBTtwTI=; b=mtsdF2BPb3Hvxte+KciX6Uw/1TWbij09SwYxJ4JVjncdvJKK32lLAeHqyR/Y5JTqyJ Mme+u1ye42md4FVqWe4XCdswUTSV5AdPIY5XVJj7gqGxYSIrUKpEjmEyVCGt+/K1f5Cd 2wbL+OfuFkKxZjYT6jp8XYQFo7DUHnksaBAzTQ5c9G/sxW2lkhN40GKOJ5v0ly5fwUar mB9g+pfKPl6yZuGcJhOLheScNlOO5dTXwYGS9dAD784R+3za4qhRy5baRYUNhZOenhS6 vir/pVPW5isqi60G0pZn4sgXS+aVbCndS7V2gUZ0jTDEJwvGixaqzN6wiCmB1pm5jwTp 6lQQ== X-Forwarded-Encrypted: i=3; AJvYcCUK2P2uc4ngBVHOLzQFAKOR0+Ad0WH0yDLurOUHJjM1IOIW8Ece3ieikfXChJKGtLnvmMzwYg90yw==@patchwork.ozlabs.org X-Gm-Message-State: AOJu0Yx2AMKTreA/pTldW6bXrJ53O3wEXmsvcP/MVKFdF++nmVB+2V+6 9Cl9mKbEOTBzwnYG3vOXRkgjfsM+WpDBBLDtLlX7cxbrjVLX+asc X-Google-Smtp-Source: AGHT+IFIMoHB/3W6DkpkvTme8QHEfmtHBmaiGlPfjcftk2+D/fPnWzvQddKJUA/3d++fwnqNsOKTvQ== X-Received: by 2002:a92:c564:0:b0:3a0:92b1:ec4c with SMTP id e9e14a558f8ab-3a375bb7860mr136302565ab.23.1728391759536; Tue, 08 Oct 2024 05:49:19 -0700 (PDT) X-BeenThere: swupdate@googlegroups.com Received: by 2002:a05:6e02:1c45:b0:3a0:beb4:f1e6 with SMTP id e9e14a558f8ab-3a36e46d4d8ls27125965ab.1.-pod-prod-05-us; Tue, 08 Oct 2024 05:49:18 -0700 (PDT) X-Received: by 2002:a05:6e02:1a8a:b0:3a0:90c7:f0f with SMTP id e9e14a558f8ab-3a375ba9911mr132898275ab.15.1728391758161; Tue, 08 Oct 2024 05:49:18 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1728391758; cv=pass; d=google.com; s=arc-20240605; b=S2B26RJsOU8/Qoo1ueg87QxVMYo6xX171aVN2WJKqYkZwaCZQ6F9Zg8gBf3MXN8e8j p3tVh2TlYDlarZRN7m3SydgpxHa5l+sPpmpBc0w6e7NUME2Z1JXbUx7x/COn3YxRGSH5 dwu6T5eFACu+G6hEO8hlaSbYZ3RvhVpSM/UfYcZfcp5Y1C8yO/4srn5DOuYb1Ks91i76 KsTaMaqfAR2Uoy3MpRdvHp8CTRgwwp5rJlJp0dgbKqjklP/vCmaP0pYB48l4iM4vMhVy fz9fw46WHWCRKze8qBRnsHBxwIIiquG6RKLFuhdFqktAyURvcwhO39Si/NaL2sk4Notm G+tQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=mime-version:content-transfer-encoding:in-reply-to:organization :from:content-language:references:to:subject:user-agent:date :message-id:dkim-signature; bh=0DNAMWPgqtGsBr5gXPAKXsBxwK0PoQPnaLjOWH96tos=; fh=ZnR/GV7fAozRX3tpIO3vp/Jbul8ISZhdVjghlw9eWq0=; b=HOG9ESkP8XXdMIPYABfjeu6X+SiWbYKCdawFtCnZtcjTKw7+zOU4aaFvf3zO3EFANP 9lTwMIGbpDuokgC6doGHN+9lxqIHU0NtvzgqzLI+IWEGxeqKq6ABZVkzeWL9QQJoGMgp buJG3KZu2/zzgvMyjNjVBaTNskx+7OVtWcSbm/kOqSiW8tEzvz0772yWie53ym5vsgEO NPEd3brvE2QmK/6e9ZF4DTqbugFC4fxoijqeoe5DSZnE6Jxcb/AZgAVFq2AydXVKYEO9 nXFcJiJgYyjTw7C34viIw7A9Rl95H9+6hieVobFCK4HQOyXee5uufv6GpKuCyLF9451o GnLg==; dara=google.com ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@witekio.com header.s=selector2 header.b=K4gYBL2p; 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:f403:2614::700 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-db8eur05on20700.outbound.protection.outlook.com. [2a01:111:f403:2614::700]) by gmr-mx.google.com with ESMTPS id e9e14a558f8ab-3a37a7600e9si2720265ab.0.2024.10.08.05.49.17 for <swupdate@googlegroups.com> (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 08 Oct 2024 05:49:17 -0700 (PDT) Received-SPF: pass (google.com: domain of fhoerni@witekio.com designates 2a01:111:f403:2614::700 as permitted sender) client-ip=2a01:111:f403:2614::700; ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=gwCBRxgpdkIuNGmFByv8ed/ok+pshI3fuaRTAvhExysmYK9+uC+sERzKIWxBgkkhxVX2mA0ScHE0XbYVRUfwBvORUlucNyTlRYQ2nYFgV1zUHFF5hOS0RAlaR0gyiWUFNVJjCSjqPjt4s4e8d1a0afpTrd0KUhLToKugJjQqD4gG0ekiMgsbgLj9UNpW3UnrI1sSDBFQyDQyc0j+5Vm/ycG90ou+gI3ujvZKPzXsp3mw9SZCk6tUSR4ylh80gUnaySkFFCb1vupuC3P6wPrJPS4gB4A3hTDuYb2iE9QPCnbcch2TN+M6XwvgXQxJjDQcz7VfQ65wkxRswbxS6AnjIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=0DNAMWPgqtGsBr5gXPAKXsBxwK0PoQPnaLjOWH96tos=; b=lpKrm6hHy04KXBoELjdTKN+5TZBxuckD7Ms9d1bC/FpPytjlY62qHacdMnZ9Q1qLpTI5LetMVFxAZw9O5zxnGWjSmPxBNsksPGW4XO52aa3nwJ22CSLliySPb5t2DL/0JAOL7SR4o+bg7KXWFyfMXVycXw2wBCDHB53n5LXQKZ5ILzFhY4yNOIrWfeSaGhrvHC9WEucYNNM9PmllJDkllaOTCDfcoAOJBWRYWGgJQncMFLbcOASGNVKEg+WKZkqTP0MY2KYHakfLCFig5v6yDmdB3PzA3vfskNbrLkzEVKVUVMjcbbIo8toGkLYL5sOyzR5ugBHId3n++vx6wDD8gg== 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 DU0P192MB2076.EURP192.PROD.OUTLOOK.COM (2603:10a6:10:47b::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8026.22; Tue, 8 Oct 2024 12:49:15 +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.8026.020; Tue, 8 Oct 2024 12:49:15 +0000 Message-ID: <e2daf6db-385b-491d-a582-079879298a5c@witekio.com> Date: Tue, 8 Oct 2024 14:49:14 +0200 User-Agent: Mozilla Thunderbird Subject: [swupdate] [PATCH 2/3] progress: add non-blocking progress_ipc_receive_nb To: swupdate <swupdate@googlegroups.com> References: <20241008123845.32785-1-fhoerni@free.fr> <97f79916-508f-41e4-893f-ef575c135c8c@witekio.com> Content-Language: en-US From: "'Frederic Hoerni' via swupdate" <swupdate@googlegroups.com> Organization: Witekio In-Reply-To: <97f79916-508f-41e4-893f-ef575c135c8c@witekio.com> Content-Type: text/plain; charset="UTF-8"; format=flowed X-ClientProxiedBy: PA7P264CA0017.FRAP264.PROD.OUTLOOK.COM (2603:10a6:102:2df::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_|DU0P192MB2076:EE_ X-MS-Office365-Filtering-Correlation-Id: 8b9ba718-eb24-49aa-9337-08dce7979dd5 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|376014|366016|1800799024; X-Microsoft-Antispam-Message-Info: =?utf-8?q?Kmo4yV3jYwQtkm0Z0aNuQyqdaYaQmaO?= =?utf-8?q?M1WNBByeD4HmB/owcoz4esWwzsdsjSWyHB7P3SqfqjY1j2MVRz+UHWBXvW//+AD1h?= =?utf-8?q?kFYzDF+7YeKckPOteidzIfm5oNwBnPvMzNGSX1nVn+IgnMDeTUmTNdnqBKHK42aEC?= =?utf-8?q?hHKkWthTYnWcbjTM57BK6zJDb7C72gywmiFCt2swoOuAYZHXU8IsG/3eMeKWcK/YU?= =?utf-8?q?Plq8mMzP7kk+VS6cxz22OZpyjLXGyIFUY5VCk5Xb0d1Lsd4RHaKJ6Ev+SR5MYCdl6?= =?utf-8?q?NgJICXpzNWInbO5pnaU1BI0BHdIubKDw2PhRUPYYoVFBNpPHXzy+CXb0tjQH+kGW8?= =?utf-8?q?AnckOPg1zaKtP+opIcZ59xZAZQGLCYvMln44nPGWffQRygUmFcInVQTzag2TTZJFL?= =?utf-8?q?4blc2smD8gfvNOwv6jAcWZKdV2EoJBqvq2Mq1giMGaP6qqwTs9IyNVqZKQjvU95Ll?= =?utf-8?q?6xc7G7xWQwwQOhCPN+AA3+gojjaMaATQUx8eP56TAHYJEaepIc5sfCs5Pgj/GLmEb?= =?utf-8?q?CVLcG+Gt0nKmYVSmw+jwyFZFN7piBmfnmGRBS0sXQHcO1fc4DEc5Ynt7NxX3vnQ3G?= =?utf-8?q?VixYBcNRiWvYZzhCpyH3YYN7U0fSkCSshpXw4kAMpBdU6dvL5tzKYknKRqxOYQP9C?= =?utf-8?q?2LXfKUZz08giPrQlDsOZsq3VWrDgi/CmuvkCRBlRxLWNy2FtuBmey26iueHteTaRS?= =?utf-8?q?onvWVu8L58KG5KhywuuJa486eCUmFEWbTDAWvLOwK+vcd85bU6WM9t6xNuTuTX9a/?= =?utf-8?q?bVkDnXNioTUMkmAuG5PwldcldFHqL4tl+0F2US+FNQHctEutajcPSQhDM0+3ICEH+?= =?utf-8?q?tZ9XGfMXde0cbHi1LTwNp2RAudAKu6U2Swg8PGrefE8R0PjAlR9icrT+K8+3qF6gb?= =?utf-8?q?Ux/6vffv3Tt4OclNgdx176I0TegtdvBHgnhwXFWG/CgSn5om8vmlxLD6V9Rk4Rdcr?= =?utf-8?q?bnbVmWwUjEDbF4C+/PLmyLyJKbe7GsG81fe7KK1zn0j7ycI82OPeSfCaDvzhyzcHt?= =?utf-8?q?FKz2WaaprQM2RihZzv0TKnNaWHVXFmDdyMtH4rRMQ4cyO4lbwtO7suVl8vxbSKQVH?= =?utf-8?q?tn6mp0lQrWBpMhVxdGZHAxEGft5tJB6MxzAZUlJsZfQmgqQ7bMacZWs1xyrSkWfGl?= =?utf-8?q?G6KTDbxUWh8VAJd3Ag1SlHCv8g0Y2r2iVkKdDpdRCISvGrCg1gDhrnRShshVyTkNt?= =?utf-8?q?5txdS/aL1R3B/suNvLKYty60NjmJnhfUMugQ=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)(376014)(366016)(1800799024);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?L7M0xt+cwtNBuePp/BnvOJVWIeW6?= =?utf-8?q?cWkyWFyTBTQ+V9gc8RV1a3iwZUqfnDzmUFkDELlly+2q7+ViGuxaTQZXC460pHMcB?= =?utf-8?q?P/VN4WgqbFHVw+UV7Ej03whfgFQ/cqyyj2wovX3+tVwuWCTStSOUxEPu1g5W7npph?= =?utf-8?q?5fhbsDDenp8Wtz3Q8vfigZEqHieJm2LCTQ1PRIDEJPeGhO475g16uBVCgWaOhcftz?= =?utf-8?q?gN+Wg1j27J5RfKWPyZw/bhlzCUSYiG+eHXYylu2uWp/pMnkQ3i8eZ1OS9KRs1B5sZ?= =?utf-8?q?XeljAstzJlvKC7pcgdSNuW0RotrH3C12LvY1eR55iON7eG6g2+3MnKegqVujz0fnX?= =?utf-8?q?RvJbCe/sv55DUGw/4ODnHeptwj/gj/TQ0PM7reLldqejZvgy9+0sgrGCxFQPsRSon?= =?utf-8?q?FHSwOhGKBCc2b/CJFEjjTKVAiFIjs7RwGUtXZbekL69RKXvtog63J92QUrrHS+iKR?= =?utf-8?q?p7p9AXf4kHIGHzDnXpCY4wFtTwxCU78A/znSu5gyzjHVbO/mFMYLxG+8YUT8exP4F?= =?utf-8?q?Nl9Jnxcglm1BkL+2gTHfBwMIyHgCEtSIjPpUyviLND+zDqldMgvc7fqurt2Wk/hcn?= =?utf-8?q?JRNr9e8TlinovXMISjukoodRLdVJnLSgmO/pSHBlUjRmADLyP0orzBFqe3zKsAtCn?= =?utf-8?q?3xsn5vF6vJ3riXDpb2bpqCmA2XdzdO3kvN1GJX3oPyyGLEnc1hZECTyHfQ6vadk7y?= =?utf-8?q?XMeTQShLi3X+hcuvoS43R046bkXmsAU3b2daYQ9VLTMR5PJ3yYvTeNVuzwGrBloNw?= =?utf-8?q?ZT0dTpyQA/M7DzeRpWSNRDtJ5R503eFS0+GnPl965XLfWc3iC56/sqep6XYFyi4XO?= =?utf-8?q?Qr1/H/SHnWtavLEfevqrBWWWTG/DXpWr59LlLVfR05pC1AYD6RNwbCJ8/92agRacR?= =?utf-8?q?POndC7mXB0AfYSegIlvVsfJsjwIcSBoLK5wESNo2QmGsFVmZ9wps/rII+ksAX2JD2?= =?utf-8?q?t5Lfy+lO8kEHsK1AHFH5TFPs2I9gsijRJwFlKXCwdo9fDOqLRzlnscg6dz643Lozo?= =?utf-8?q?D9HvlEWTnafc/uFl8BVfBcG6h/SBnIHSZIT2EE4dIPf2U/yiIBC6Ab/5wZ6SF6oY/?= =?utf-8?q?E9DAE6K1ikQq3+u8wBjGZItd9MF14f2YLWGQWTlhiqvvsEtVI0TXYvUrthSxzKi8C?= =?utf-8?q?xwV8IYS2pCBSe314xU9Vdyxvh5mlnmNN2Q+Ooi4WLAHQMapo3bjvCZiMnMRW9BEQY?= =?utf-8?q?A2GRoCHC5q338wcBs5oBY+ybmQDBml45WolS6HfpEE7Ow8lgnVm5LZQV4sg+s2Ybt?= =?utf-8?q?anMBgA5qRqK8RMrN9yG5hVLZYDuiW1+yCTrv7dYGM4ZuYaIjOH4lY73uDANs3Uwmg?= =?utf-8?q?mgO6joYoXO4Om+ufXZDXiqtDQAXj/KskhYtf3+/bTVdJ9Q07Y6Xy1Vn+C3aLSCVZt?= =?utf-8?q?yW66ZvMglR8Rg4HuyAXpof5SKoAIpbaKUNiFXNYemf11fEi4ou4SLDVZzEd99hLUt?= =?utf-8?q?9QyrOjYVyAczLQotGyWQGM6a6eRLQ8DOCu3KZ98cE6HUGWMS4JOC58YXlVFVdPHoN?= =?utf-8?q?Tu5H69nfd1dw?= X-OriginatorOrg: witekio.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8b9ba718-eb24-49aa-9337-08dce7979dd5 X-MS-Exchange-CrossTenant-AuthSource: PAWP192MB2225.EURP192.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Oct 2024 12:49:15.4713 (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: WOHPJZYDcAJKbX5GfAASVE1mz2GAEVj1wYy0ZjrS7i6qNaSnIoLQq6WxB1Ek4RsP7ZtCbREPpAHHngpuKahz9A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU0P192MB2076 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=K4gYBL2p; 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:f403:2614::700 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 <fhoerni.opensource@witekio.com> Reply-To: Frederic Hoerni <fhoerni.opensource@witekio.com> 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 CrapFileTest sometimes hangs
|
expand
|
diff --git a/include/progress_ipc.h b/include/progress_ipc.h index e79d476d..8d63d1ca 100644 --- a/include/progress_ipc.h +++ b/include/progress_ipc.h @@ -86,8 +86,9 @@ int progress_ipc_connect(bool reconnect); */ int progress_ipc_connect_with_path(const char *socketpath, bool reconnect); -/* Retrieve messages from progress interface (it blocks) */ +/* Retrieve messages from progress interface (blocking and non-blocking) */ int progress_ipc_receive(int *connfd, struct progress_msg *msg); +int progress_ipc_receive_nb(int *connfd, struct progress_msg *msg); #ifdef __cplusplus } // extern "C" diff --git a/ipc/progress_ipc.c b/ipc/progress_ipc.c index 815e1601..e9b5218e 100644 --- a/ipc/progress_ipc.c +++ b/ipc/progress_ipc.c @@ -218,3 +218,35 @@ int progress_ipc_receive(int *connfd, struct progress_msg *msg) { return ret; } + +int progress_ipc_receive_nb(int *connfd, struct progress_msg *msg) { + int ret = -1; + int err_poll; + struct pollfd pfds[1]; + pfds[0].fd = *connfd; + pfds[0].events = POLLIN; + do { + err_poll = poll(pfds, 1, 0); + } while (err_poll == -1 && errno == EINTR); + + if (err_poll == -1) { + fprintf(stderr, "progress_ipc_receive_nb: poll error\n"); + ret = -1; + } else if (err_poll == 0) { + /* no pending message */ + ret = 0; + } else if (pfds[0].revents & POLLIN) { + /* there is a message to read or the peer closed its end of the channel */ + /* (some operating systems set POLLIN|POLLHUP on this later case) */ + ret = progress_ipc_receive(connfd, msg); + } else if (pfds[0].revents & POLLHUP) { + /* the peer closed its end of the channel */ + ret = -1; + } else { + /* unexpected error */ + fprintf(stderr, "poll returned %d with revents=0x%x\n", ret, pfds[0].revents); + ret = -1; + } + + return ret; +}