From nobody Tue May 13 15:46:28 2025 Delivered-To: importer@patchew.org Received-SPF: none (zoho.com: 206.53.239.180 is neither permitted nor denied by domain of freelists.org) client-ip=206.53.239.180; envelope-from=patchew-devel-bounce@freelists.org; helo=turing.freelists.org; Authentication-Results: mx.zohomail.com; dkim=pass; spf=none (zoho.com: 206.53.239.180 is neither permitted nor denied by domain of freelists.org) smtp.mailfrom=patchew-devel-bounce@freelists.org; dmarc=fail(p=none dis=none) header.from=redhat.com Return-Path: Received: from turing.freelists.org (turing.freelists.org [206.53.239.180]) by mx.zohomail.com with SMTPS id 1519458463742740.8264719671854; Fri, 23 Feb 2018 23:47:43 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 276952ACE9; Sat, 24 Feb 2018 02:47:43 -0500 (EST) Received: from turing.freelists.org ([127.0.0.1]) by localhost (turing.freelists.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id rx5P2eTveq23; Sat, 24 Feb 2018 02:47:43 -0500 (EST) Received: from turing.freelists.org (localhost [127.0.0.1]) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id DB67F25236; Sat, 24 Feb 2018 02:47:42 -0500 (EST) Received: with ECARTIS (v1.0.0; list patchew-devel); Sat, 24 Feb 2018 02:47:42 -0500 (EST) Received: from localhost (localhost [127.0.0.1]) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id B20E92ACE9 for ; Sat, 24 Feb 2018 02:47:42 -0500 (EST) Received: from turing.freelists.org ([127.0.0.1]) by localhost (turing.freelists.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 0GpoxOMhfj7I for ; Sat, 24 Feb 2018 02:47:42 -0500 (EST) Received: from mx1.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTPS id 99DE225236 for ; Sat, 24 Feb 2018 02:47:42 -0500 (EST) Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 4C466407519A for ; Sat, 24 Feb 2018 07:47:42 +0000 (UTC) Received: from lemon.usersys.redhat.com (ovpn-12-97.pek2.redhat.com [10.72.12.97]) by smtp.corp.redhat.com (Postfix) with ESMTP id A27A72024CA9; Sat, 24 Feb 2018 07:47:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=freelists.org; s=turing; t=1519458463; bh=5Vo6LKjWOf4XywWU+RpqN79SYH6ekc3bc1HUIvVrkAM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:Reply-To:List-help: List-unsubscribe:List-Id:List-subscribe:List-owner:List-post: List-archive; b=wAxIoaAUv/Fz5bO5QlIECK6DcAilqpqnqylPDjZH+6uqNoRcQ9sDiEM9bjmj9IcvD 2i+fI1x8dMoYJiAdPOuTPa9H6tzJIYPB5ctFDIoodlP4A6RzHF4zyadoxlS1teyT3p j9WAqIMxnV7HNf9fatkR36p5UdeSAqe+ueHjqCw0= X-Virus-Scanned: Debian amavisd-new at turing.freelists.org DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=freelists.org; s=turing; t=1519458463; bh=5Vo6LKjWOf4XywWU+RpqN79SYH6ekc3bc1HUIvVrkAM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:Reply-To:List-help: List-unsubscribe:List-Id:List-subscribe:List-owner:List-post: List-archive; b=wAxIoaAUv/Fz5bO5QlIECK6DcAilqpqnqylPDjZH+6uqNoRcQ9sDiEM9bjmj9IcvD 2i+fI1x8dMoYJiAdPOuTPa9H6tzJIYPB5ctFDIoodlP4A6RzHF4zyadoxlS1teyT3p j9WAqIMxnV7HNf9fatkR36p5UdeSAqe+ueHjqCw0= X-Original-To: patchew-devel@freelists.org X-Virus-Scanned: Debian amavisd-new at turing.freelists.org From: Fam Zheng To: patchew-devel@freelists.org Cc: pbonzini@redhat.com Subject: [patchew-devel] [PATCH 4/4] importer: Kill `patchew-cli import` command if timeout Date: Sat, 24 Feb 2018 15:47:25 +0800 Message-Id: <20180224074725.1838-5-famz@redhat.com> In-Reply-To: <20180224074725.1838-1-famz@redhat.com> References: <20180224074725.1838-1-famz@redhat.com> X-Scanned-By: MIMEDefang 2.78 on 10.11.54.4 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.7]); Sat, 24 Feb 2018 07:47:42 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.7]); Sat, 24 Feb 2018 07:47:42 +0000 (UTC) for IP:'10.11.54.4' DOMAIN:'int-mx04.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'famz@redhat.com' RCPT:'' X-archive-position: 39 X-ecartis-version: Ecartis v1.0.0 Sender: patchew-devel-bounce@freelists.org Errors-to: patchew-devel-bounce@freelists.org X-original-sender: famz@redhat.com Precedence: normal Reply-To: patchew-devel@freelists.org List-help: List-unsubscribe: List-software: Ecartis version 1.0.0 List-Id: patchew-devel X-List-ID: patchew-devel List-subscribe: List-owner: List-post: List-archive: X-list: patchew-devel X-ZohoMail-DKIM: pass (identity @freelists.org) X-ZohoMail: RDKM_0 RSF_4 Z_629925259 SPT_0 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" It resolves some rare hanging in the patchew import command. Signed-off-by: Fam Zheng --- scripts/patchew-importer | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/patchew-importer b/scripts/patchew-importer index 4a72a28..5e80fb5 100755 --- a/scripts/patchew-importer +++ b/scripts/patchew-importer @@ -73,7 +73,7 @@ imported() import() { echo import $@ - if ! $PATCHEW_CLI import $@; then + if ! timeout -k 600 600 $PATCHEW_CLI import $@; then cp $@ $BAD_MESSAGES_DIR echo "(bad message saved in $BAD_MESSAGES_DIR)" fi --=20 2.14.3