Message ID | 20231127122308.36380-1-stefano.babic@swupdate.org |
---|---|
State | Accepted |
Headers | show
Return-Path: <swupdate+bncBAABBMEUSKVQMGQEAOLTQ4Q@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=Ea4ZlO+Z; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=googlegroups.com (client-ip=2a00:1450:4864:20::13f; helo=mail-lf1-x13f.google.com; envelope-from=swupdate+bncbaabbmeuskvqmgqeaoltq4q@googlegroups.com; receiver=patchwork.ozlabs.org) Received: from mail-lf1-x13f.google.com (mail-lf1-x13f.google.com [IPv6:2a00:1450:4864:20::13f]) (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 4Sf4Vz2FdMz1ySP for <incoming@patchwork.ozlabs.org>; Mon, 27 Nov 2023 23:23:22 +1100 (AEDT) Received: by mail-lf1-x13f.google.com with SMTP id 2adb3069b0e04-5079fd9754csf3764616e87.0 for <incoming@patchwork.ozlabs.org>; Mon, 27 Nov 2023 04:23:21 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1701087794; cv=pass; d=google.com; s=arc-20160816; b=YZbvk79n4wxG49pS4eZJYa+LqQhlmQ/+abTZdNz68pIkW06dwmPFOkvff5HfQu3TM8 UJQrt1ASYAC5/gsGahvy1eMST0YVnqmgqsDXkcQcOafH3pEXHkWOz92AjC4Ina1quY2Y zUyHDgTo00rB7+2qXtDm6nMISI6kO7c77NF6lrKETMsgHaMqA00g/sB4Bmfczf1WOV1O GzjzBU+fnwcAEVeABr7w1AyHGWMmtgHFkE06cfgc5w3DC9LzhLXzRgUx0nr/zEAsBFge 4NxNiQXZhH4IZCyxAsvm3abqwPJS2uEHsecmm/CI09aJINHL8xET9D9lw8kzoygNu+GR w8rA== 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:ui-outboundreport:mime-version :message-id:date:subject:cc:to:from:sender:dkim-signature; bh=7UwF245PUtUOUFAZ7CIcRpDrHepgPGRoRODFSd2Cuog=; fh=TiEWcqMcKpHk5s7uErzpntoONrNfOXwKpI5P8bIlggk=; b=N8P199J7ZTswCDBKI3DvTRd7gzOlsY9agqAixOjQzvk6ax7kpvaPxPJYie1vCJi1qI d3NJ54sKZUH08Uu4HT3ViCQURiisFlGSPUu+lQmEIGREzpvTn2WtRbsAK3iEcfAeAAyU oiwObVKFHl9KbMR1JWaIU8sObeT6q5nJ7pw2U4degEOswOrIUSZplbSp+oV/n+lT4WEJ EwZ+at/vvJTAVsHR9tZq7UGv5PeNFrUaoPSMjS8S+hV10ItSM3hbKUIxhnE9OB4vHo3J 2xD/E3Rln5bbpA6y3bprN0yPNV6WXBau95ppJjGUG+MY9HcfFPq2EmHpADW+v8QLmGL/ cS6A== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of stefano.babic@swupdate.org designates 212.227.126.135 as permitted sender) smtp.mailfrom=stefano.babic@swupdate.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20230601; t=1701087794; x=1701692594; darn=patchwork.ozlabs.org; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:x-original-authentication-results :x-original-sender:ui-outboundreport:mime-version:message-id:date :subject:cc:to:from:sender:from:to:cc:subject:date:message-id :reply-to; bh=7UwF245PUtUOUFAZ7CIcRpDrHepgPGRoRODFSd2Cuog=; b=Ea4ZlO+ZCQ++U8C3zJ0kPB3HsvvswGWr5/1325XUFHHahNjlgkjMuVUIUHS/Plcsbp vCcmazkb+8h+WfK5I/tDOn0kWgfcP7wmN8Y6GIE0MWyKfBFd7mtDM0yV7KBkFDRGSI3t xsZZsGm+jeHBETc+Jnjpk43icZYqHxLSs/K69lVM2R9VoY5U6JJBxKWdipr2vA451qS9 J01+sssrIGmqHpig/axZIt8iaEhR90RvMW5d3CZynmZLAF8kM9WcV5Zszpch53gnmhF5 Rn3hIiWTUj/TgYWCgP8yIVWp5VH2cw19TWlbrpOViui/a+SZvyhuEuzam39W+Ps+BGl7 I9lg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701087794; x=1701692594; 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 :ui-outboundreport: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=7UwF245PUtUOUFAZ7CIcRpDrHepgPGRoRODFSd2Cuog=; b=M0v44OgGUXSVhrKMuaAHW1N4nno6oEXimgXh2mqpGpd6txbg7z6WKYHEeJQQG4vJOM 0GbJPYp0FmiQrJ8hqbBZk8Yedlo/JRlOCkN24Fj1bDClwZLMv7fKoykt1QLlQAGn4YHF 6Q8/xD4Lq91nqHnFAa4yWuR2rl/yoyLSgLYldNc/4FW6qLcR+UZZStuxxIAW1VVGptTc c/J9bAu6MGdXdEtSWfUYIUV67A9gCmZiQu+WMWlo5voTy27tsFtYBg1/Fyb5IkkB4OQC WlzUuVjAEw9C331BwurKdoa5RpnetsdXA9QN5FPh5abx7SXflaV/A0MyOZH//knKgzVw xZFw== Sender: swupdate@googlegroups.com X-Gm-Message-State: AOJu0YwO+Wr975rtgYineFcbJfV479YZF0y0u8CWhpod1h04qP/rf/XP JBOamJ1Ux1I3ML4UzRGmvJY= X-Google-Smtp-Source: AGHT+IEdUJQgk/z30KFFvR6U5vWXKKHWiMvoXVbMXKN6GjOLAWYm/00BT1IoJz6kJThQQfv8QN9OCQ== X-Received: by 2002:ac2:4838:0:b0:50a:a006:77bc with SMTP id 24-20020ac24838000000b0050aa00677bcmr3641804lft.58.1701087792860; Mon, 27 Nov 2023 04:23:12 -0800 (PST) X-BeenThere: swupdate@googlegroups.com Received: by 2002:a05:6512:b8e:b0:503:7ac:19f3 with SMTP id b14-20020a0565120b8e00b0050307ac19f3ls274055lfv.0.-pod-prod-07-eu; Mon, 27 Nov 2023 04:23:11 -0800 (PST) X-Received: by 2002:a19:f60e:0:b0:507:cfbc:bf8d with SMTP id x14-20020a19f60e000000b00507cfbcbf8dmr7488992lfe.16.1701087790924; Mon, 27 Nov 2023 04:23:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701087790; cv=none; d=google.com; s=arc-20160816; b=q9gnX3eii0Kb+Y2O8n/wud3QydhVacJpfy3ecdDFQ0P1S/wo7E56FfSgBx/M527tEg aH6/l8GhazqEhh1t22K1zZX/VPNS/OCShgR/Pfs4H3ALnKGNNUVZJisH4PsV9qp8pzVb PWDf+B4SI6yLON74MPwQCnPMZyA5d7Ya8H9g5gxkOii5zZvv0SzbHDDRvpL76tUYtsHZ i3kR8myZDAN/aia+THffXSzdbvgabhLb7QeElfCtv8yXTuwfmbDqJcPFJ+J7kT3zg0nQ Vnbak5A+6Bw+3ZMt6i2PPRZj/UOpVKy7hmb0FE24OLalold81+XXzQblIRBVMbquN+up 3PXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=ui-outboundreport:content-transfer-encoding:mime-version:message-id :date:subject:cc:to:from; bh=sgYFgngA4BDiGN/Zjfz5qJFIWJsZBYIKwrn1+Z6YjmA=; fh=TiEWcqMcKpHk5s7uErzpntoONrNfOXwKpI5P8bIlggk=; b=SALVcO0CroVBM7nlFypUM9B0nxaFdlGBz/ryjIzmNuquzfFo/AhXyNRFMZt5aEFvJM QOqs9nog6u74sjt+1CPI2IHD2ENgHfzZj8Ty/mOySgS3aC7GjSKTLfuDCwLscrz9W90d mPsaPrQt7U3R56zdFOCXKCp4j4Gyi+vuZJzPt5x272JEeYTAuL53FXpXBePJW3/1N2je dbJB2Ex09p7azdSlbGAtApugyPUi2i1VdeHHhhXuP1AEPdJv5ZngS4RcNjrCbnK6NlCd ball4D+XQOMep74a7RGlLENLpWwam96JCwluN8tP6BAmdHK1EAty3LZxdocLd2g8dY0D bSBA== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of stefano.babic@swupdate.org designates 212.227.126.135 as permitted sender) smtp.mailfrom=stefano.babic@swupdate.org Received: from mout.kundenserver.de (mout.kundenserver.de. [212.227.126.135]) by gmr-mx.google.com with ESMTPS id q5-20020a0565123a8500b0050aa8c18295si496563lfu.5.2023.11.27.04.23.10 for <swupdate@googlegroups.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 04:23:10 -0800 (PST) Received-SPF: pass (google.com: domain of stefano.babic@swupdate.org designates 212.227.126.135 as permitted sender) client-ip=212.227.126.135; Received: from paperino.fritz.box ([88.217.136.221]) by mrelayeu.kundenserver.de (mreue012 [213.165.67.97]) with ESMTPSA (Nemesis) id 1MoNMu-1reUg20JE8-00ooKR; Mon, 27 Nov 2023 13:23:10 +0100 From: Stefano Babic <stefano.babic@swupdate.org> To: swupdate@googlegroups.com Cc: Stefano Babic <stefano.babic@swupdate.org> Subject: [swupdate] [PATCH] downloader: ignore SIGPIPE as other processes Date: Mon, 27 Nov 2023 13:23:08 +0100 Message-Id: <20231127122308.36380-1-stefano.babic@swupdate.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Provags-ID: V03:K1:4rxtmzjs6FhCtvobqx72vQG2i3RE05AjPyv/tq32RzAmFSslRkn hEMx6rLYRkGYfqUMlsLL6p/YRHamGO0vgd2HTpp1SWludmV5X92V15nxUZSpqcyNTEIezS1 TgWnLFMgnVHWtrHM27F3VhgxU5yg1OaKfeIUyRvkD3Fq+DdVpHkBXao4WYVc/r6hVL3LpUE 0SU7a+Hft93m373IjzIQA== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:TlT+Ej7Ol68=;aJPFYtQqKb6GVjlCTXSU73ke0u0 yGJvu6o9u6EuC/aNx2xUXsEVjtg3KSlww/HQ/V50SYb9J1YwED0fppuMevkbrahRE5AbckLED kwZbcySH+qwrucJm3iH2q39/NhjPfb9bl0wNp33WfMDFiNL4HnukTDaFtMEB3tk5LmD9vH7Wv aY2Os+zL3mQIzSHGHXVykt+FMztE7S9xP0J2ReIaH5R1WLbTAW7my7jX3W9CBWpDwOyponIP+ 6N7Ne1WVJxq8pytiNGubnKmyUxq3YcbRrJ5WrEGjIK8UzeYgEdGZ8+f87Ezu9FYX5XNoI/E6F nOfRpZyFYa7zDyOAh35nwdFiUbpQg4Pl+AYpqrxEmKLRklgYxc4qM+a4hAceOWqngZLcng72j BlNIsJEec0auPjazA0Jo34O9sA9g4IKPmSCXa4k+Jll6BU7dmI5ALsjnZINVJzWHYuiPaHxbh 1AgWme/o8ba4AM5/QJoINP5dAoBAbYwK1qQO8Vx0aI328NOE/p2cKyo2OXs/AYXRXQFSolnS/ ul1BQzR0QRpf2fPds7IVFkNrFsRu+PBDo73gU6HBzt5yjS6z60cCl7bxGTZJmJCp3rJAe3js7 cBooOUWVqE4baSuHyN8NrgT3v993N2GkyqB8wK9Rp8KHhEVTDNPPd6QHyvUYVStoIYWTc7jy/ /1LI9YhCdqUSMKyddcXS5U97zGieIG1cguJzN4xUS1CVRmpeAUJ8OrwBtIyd89aHREG0LN9Em SuvI2ScNTpiZDjagnSHoWhpsx7slhBqk06gK6lQTPICUp3KWc9S35NdzcdT6IrBNzZ/dMf2ws c20RSLXuFWXgTH2AorOomK9zRlEMVEXKgBlimq+QfT3MZ4vGw/UGqro6tREEhji7TphtqiLfk pdGDaeuJ+4c4Dzg== X-Original-Sender: stefano.babic@swupdate.org X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of stefano.babic@swupdate.org designates 212.227.126.135 as permitted sender) smtp.mailfrom=stefano.babic@swupdate.org 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 |
downloader: ignore SIGPIPE as other processes
|
expand
|
diff --git a/corelib/downloader.c b/corelib/downloader.c index ac138f85..57e972af 100644 --- a/corelib/downloader.c +++ b/corelib/downloader.c @@ -9,6 +9,7 @@ #include <errno.h> #include <getopt.h> #include <json-c/json.h> +#include <signal.h> #include "util.h" #include "network_ipc.h" @@ -266,6 +267,7 @@ int start_download_server(const char *fname, int argc, char *argv[]) * it is safe to call ipc_thread_fn() directly without spawning * a new thread. Function dows not return */ + signal(SIGPIPE, SIG_IGN); ipc_thread_fn(download_server_ipc); /*
Avoid that the downloader is closed when SIGPIPE is intercepted. Signed-off-by: Stefano Babic <stefano.babic@swupdate.org> --- corelib/downloader.c | 2 ++ 1 file changed, 2 insertions(+)