From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 2531741B83; Mon, 30 Jan 2023 21:09:20 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B0B7A40DFB; Mon, 30 Jan 2023 21:09:19 +0100 (CET) Received: from mail-pj1-f46.google.com (mail-pj1-f46.google.com [209.85.216.46]) by mails.dpdk.org (Postfix) with ESMTP id 1C5D440C35 for ; Mon, 30 Jan 2023 21:09:18 +0100 (CET) Received: by mail-pj1-f46.google.com with SMTP id 88so12160488pjo.3 for ; Mon, 30 Jan 2023 12:09:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=iIUBEXnOxhzvJ2Rb8833UfGu94gPIBBfHTfd97gMAbo=; b=4q7fvzMOursSUD/JRKOV0v8pWU9SBEoib9sl5WUjbDnOpieHZE8LaokAmc91GA62ms B+FDHC1NGh6PjDyHz2jp67Uq9k5v+YQAiwW1Nj23Cgl6yXqD8W2fUCZ7rqPl8n5T6Q9x uvNg/y5ESrzp+GGdCfdHRhnpqf0zP+XwBDtP9wUhv1JF54Vf5zNdd1xMx2HVKNkOQ0hW +S0Aag2JJE2Jg7e6chc8AV3Cm4RRtHyuYLaXqdd/Cy7/sWEWjw526qgByMoAGBzL77AS /+7JcrXEhauyjd8xrRRhkBNtcYbqjsYZK1pMznlkNsJaUjZ3urLLNCNbPbvTo5DDz5iS tkXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=iIUBEXnOxhzvJ2Rb8833UfGu94gPIBBfHTfd97gMAbo=; b=YWL3trD7GmG8ERxKJvFlfkQMZObHsIrf7wzt+UOwgpnUxGkASybouEzcwKqj41yOxc FvVJjcHD4rfmJPm+a+meMmmAL12zKXsx36ShU8v4NHon3JemkmzjpZ4hc11JR5bkdZym lWPYQTQnAKcFAj6fdBheJNmM3505ehn6lcH+49YvwN2Z+cPCgP7qFCqlwtBk9/Qu/yrC 2SFJi8mpdlOidGHPfz0ZNOHLb+EdLJMXUbvYhDrceVhj1pKSDQs8Q9BoESfkxqdOEeEH FIf8DcpzHAk5XmImp9j3fW4AucM5p+xcUqWsNgb82bfo6+LAt36vdvtC9T5AZ+uRXFHl puQg== X-Gm-Message-State: AO0yUKWOAFOPNyzZi7WyA5SqL0trksqbcmIlp8CH6wpCcaa9agYexcYV W5faDYH2SH9YQ5nyZbvx35uNrpP66ccM+cNXZJY= X-Google-Smtp-Source: AK7set/t+IzWmkJGiJFnipLSetQgW56s+KZjwNJi2tVQTrgCj8bghC7R5AZof3/0KVGu98kqHLeGQA== X-Received: by 2002:a05:6a20:3d24:b0:bc:a334:abc0 with SMTP id y36-20020a056a203d2400b000bca334abc0mr10092974pzi.21.1675109357814; Mon, 30 Jan 2023 12:09:17 -0800 (PST) Received: from hermes.local (204-195-120-218.wavecable.com. [204.195.120.218]) by smtp.gmail.com with ESMTPSA id p19-20020a637413000000b004774b5dc24dsm7024329pgc.12.2023.01.30.12.09.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Jan 2023 12:09:17 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Subject: [PATCH v10 0/2] testpmd: handle signals safely Date: Mon, 30 Jan 2023 12:09:12 -0800 Message-Id: <20230130200914.22049-1-stephen@networkplumber.org> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20221014172328.185219-1-stephen@networkplumber.org> References: <20221014172328.185219-1-stephen@networkplumber.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Fixing the signal handling in testpmd requires also fixing EOF handling in cmdline_poll() Stephen Hemminger (2): cmdline: handle EOF in cmdline_poll testpmd: cleanup cleanly from signal app/test-pmd/cmdline.c | 30 ++++++---------- app/test-pmd/testpmd.c | 77 ++++++++++++++++++++---------------------- app/test-pmd/testpmd.h | 1 + lib/cmdline/cmdline.c | 2 +- 4 files changed, 49 insertions(+), 61 deletions(-) -- 2.39.0