From patchwork Thu Aug 8 20:05:03 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 11084681 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 0466D13B1 for ; Thu, 8 Aug 2019 20:05:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id ED1BA28B0A for ; Thu, 8 Aug 2019 20:05:17 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E0EF428B85; Thu, 8 Aug 2019 20:05:17 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 80B8F28B0A for ; Thu, 8 Aug 2019 20:05:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390169AbfHHUFQ (ORCPT ); Thu, 8 Aug 2019 16:05:16 -0400 Received: from mail-pl1-f193.google.com ([209.85.214.193]:42968 "EHLO mail-pl1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732704AbfHHUFQ (ORCPT ); Thu, 8 Aug 2019 16:05:16 -0400 Received: by mail-pl1-f193.google.com with SMTP id ay6so44026941plb.9 for ; Thu, 08 Aug 2019 13:05:16 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=PLkRSmrn41W++1njDG0plghfflSWM76SF0ZekFVoOoA=; b=W0lTbLI9Abn7VdmuXgk+9pdVsxLjcKJKgbhjaDGSjS18N3A7m191efUCrZsmo51MKr 4gqa3pCNuN2LQGpt5YfbAs8SD/HsNRqUxaKvXga3/RzVIOMQZDdNd6+ymTZqO034XWfp uQFWK4JvEjUfusedJnlAMlDvaElbi5PEkizV+iI+Kik3JGPnNMvNosm8xv1NW2A5lhQK 1jrhe2AhIoMOUfWaVk+fxo0m1Y4QAEKq2TQxNngYFcZBQVw3S3pCHwIxlLxVrEXXNdke pWq8b1RWxuh4v56zhftH9wsH7nr6863efV/p8ocWVMHAtKMRQmL8WqcovGLJAbCmTmik 9d4Q== X-Gm-Message-State: APjAAAWJrEaAj4VelrdxGdF9hTQg307I4FYI1EsmsFreEDvEIbzTq+PJ 8aQMj1+GYoG8PMOPFmrCB68= X-Google-Smtp-Source: APXvYqyT0ujooYRUe+4LgLRsVNwnzlmU63fgIXwRMfSXaZAEsU0z9kYLgkgB85WG6kOfxb3gMKxNTQ== X-Received: by 2002:a17:902:2bc5:: with SMTP id l63mr15950672plb.30.1565294715831; Thu, 08 Aug 2019 13:05:15 -0700 (PDT) Received: from desktop-bart.svl.corp.google.com ([2620:15c:2cd:202:4308:52a3:24b6:2c60]) by smtp.gmail.com with ESMTPSA id b6sm83307093pgq.26.2019.08.08.13.05.14 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Thu, 08 Aug 2019 13:05:15 -0700 (PDT) From: Bart Van Assche To: Omar Sandoval Cc: linux-block@vger.kernel.org, Johannes Thumshirn , Logan Gunthorpe , Bart Van Assche Subject: [PATCH blktests 1/4] tests/nvme/rc: Modify the approach for disabling and re-enabling Ctrl-C Date: Thu, 8 Aug 2019 13:05:03 -0700 Message-Id: <20190808200506.186137-2-bvanassche@acm.org> X-Mailer: git-send-email 2.22.0.770.g0f2c4a37fd-goog In-Reply-To: <20190808200506.186137-1-bvanassche@acm.org> References: <20190808200506.186137-1-bvanassche@acm.org> MIME-Version: 1.0 Sender: linux-block-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Avoid that the following error messages are reported when redirecting stdin: stty: 'standard input': Inappropriate ioctl for device stty: 'standard input': Inappropriate ioctl for device Cc: Logan Gunthorpe Cc: Johannes Thumshirn Fixes: a987b10bc179 ("nvme: Ensure all ports and subsystems are removed on cleanup") Signed-off-by: Bart Van Assche Reviewed-by: Logan Gunthorpe --- tests/nvme/rc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/nvme/rc b/tests/nvme/rc index d4e18e635dea..40f0413d32d2 100644 --- a/tests/nvme/rc +++ b/tests/nvme/rc @@ -36,7 +36,7 @@ _cleanup_nvmet() { fi # Don't let successive Ctrl-Cs interrupt the cleanup processes - stty -isig + trap '' SIGINT shopt -s nullglob @@ -66,7 +66,7 @@ _cleanup_nvmet() { done shopt -u nullglob - stty isig + trap SIGINT modprobe -r nvme-loop 2>/dev/null modprobe -r nvmet 2>/dev/null