From nobody Tue Feb 10 15:44:46 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1499940551450117.38037594983564; Thu, 13 Jul 2017 03:09:11 -0700 (PDT) Received: from localhost ([::1]:58498 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dVb3S-0001Jt-VW for importer@patchew.org; Thu, 13 Jul 2017 06:09:07 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55911) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dVaz0-0006El-BK for qemu-devel@nongnu.org; Thu, 13 Jul 2017 06:04:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dVayw-0005ZA-1H for qemu-devel@nongnu.org; Thu, 13 Jul 2017 06:04:30 -0400 Received: from mail-qk0-f196.google.com ([209.85.220.196]:36256) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dVayv-0005Yn-Sg for qemu-devel@nongnu.org; Thu, 13 Jul 2017 06:04:25 -0400 Received: by mail-qk0-f196.google.com with SMTP id v17so5133127qka.3 for ; Thu, 13 Jul 2017 03:04:25 -0700 (PDT) Received: from yoga.offpageads.com ([138.117.48.223]) by smtp.gmail.com with ESMTPSA id n21sm3776447qkl.51.2017.07.13.03.03.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 13 Jul 2017 03:03:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=k4S98yM74SJROkmXhmg0GFa0N4tK4coI3GYV6LO2NJA=; b=OyfMfzI5ZDFVaBbkoxVbtMGGMZpWn46/LED34hMWkneuXxbCJ1if4fk0u2weh+OxcV T+Z1vKIyanQVzrO2QYQ56wotAI8mzsBdKh61DTwkdQbI2NWpdJuPR/08U9OhSKXjWMmv iesHHCiYCCHtZB0LBoRM70lBxHK7YmLYPfc3Ce4qjEYTOzi9oIsShniOW3j0pOVzrD4j 8J0hrVbrt4XOsfMk5KsErY2/b3FeprTCPEZWvTq3rVmnhJZvIO1DKP2M/vwcCMTEZ+XW 2fdaD21H4BxjBpv0EbgHYwqXEr/F8/MfJXHhy3Qs8VEaXRfd8hWFakyxVn58GLuYKNND 8afQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=k4S98yM74SJROkmXhmg0GFa0N4tK4coI3GYV6LO2NJA=; b=TITUJNwBIkADbDtgqp3G8bf3Wm5TBczQT8IFcmWJ6hLAzPlZZu3dflpWpBcZycWOXI oXSZi+gn06py5iXVsXAvgsijMs3L0ZCIdBXFzfRfHi+BzF1ueD7QSkXyLV2D5xE2QET9 Wd4yZqRj856PxIlcK7aZgUeYkmeS1cOgyk7bENDEhwd5dXs7iwt6sZdEPrp/dd36ioP9 GUD4juzV0c5hK+MGXYVNbOn/n76fQeVOf/mCwTp9kWZfwljWiDrmvEK/3hpDqD2TBNc6 S7HA8TS2Pus42bhkqrm+g9YXQPznS09tajnI5wCi8/YaTCXtWMj8f/mCwf+Wt45M0TXN T4Xw== X-Gm-Message-State: AIVw110W1iTOyBL+XafjzxOsMrWd7GuV0wO4wHWzQFkegAMZQpD1OIg6 g5kyEtmYBAXYXQ== X-Received: by 10.55.26.14 with SMTP id a14mr3423330qka.4.1499940205210; Thu, 13 Jul 2017 03:03:25 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: =?UTF-8?q?Alex=20Benn=C3=A9e?= , Paolo Bonzini , Stefan Hajnoczi , Peter Maydell , Thomas Huth , Fam Zheng , qemu-devel@nongnu.org Date: Thu, 13 Jul 2017 07:03:10 -0300 Message-Id: <20170713100311.20037-2-f4bug@amsat.org> X-Mailer: git-send-email 2.13.2 In-Reply-To: <20170713100311.20037-1-f4bug@amsat.org> References: <20170713100311.20037-1-f4bug@amsat.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.85.220.196 Subject: [Qemu-devel] [RFC PATCH RESEND 1/2] scripts: helper to keep console alive X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 useful to avoid Travis CI jobs getting killed after 10min of inactivity. Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- MAINTAINERS | 1 + scripts/aliveness.sh | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100755 scripts/aliveness.sh diff --git a/MAINTAINERS b/MAINTAINERS index 9529c9484c..c39f418a13 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -1866,6 +1866,7 @@ S: Maintained F: .travis.yml F: .shippable.yml F: tests/docker/ +F: scripts/aliveness.sh W: https://travis-ci.org/qemu/qemu W: https://app.shippable.com/github/qemu/qemu W: http://patchew.org/QEMU/ diff --git a/scripts/aliveness.sh b/scripts/aliveness.sh new file mode 100755 index 0000000000..1c2b6136b9 --- /dev/null +++ b/scripts/aliveness.sh @@ -0,0 +1,32 @@ +#! /usr/bin/env sh +# +# Send an "Alive!" message regularly to stderr +# +# Copyright (C) 2017 Philippe Mathieu-Daud=C3=A9 +# +# Author: Philippe Mathieu-Daud=C3=A9 +# +# This work is licensed under the terms of the GNU LGPL, version 2+. +# See the COPYING file in the top-level directory. + +TIMEOUT_S=3D$1 +shift 1 +{ + set -e + while true + do + sleep ${TIMEOUT_S} + echo "Alive!" >&2 + done +} & +WATCHDOG_PID=3D$! + +cleanup() { + echo "killing watchdog ${WATCHDOG_PID}" >&2 + kill -TERM ${WATCHDOG_PID} + exit $((1 - $#)) +} +trap cleanup INT + +$* +cleanup 0 --=20 2.13.2