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 AF8524320E; Fri, 27 Oct 2023 02:18:12 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8049840295; Fri, 27 Oct 2023 02:18:12 +0200 (CEST) Received: from NAM12-MW2-obe.outbound.protection.outlook.com (mail-mw2nam12on2043.outbound.protection.outlook.com [40.107.244.43]) by mails.dpdk.org (Postfix) with ESMTP id D89C54025E for ; Fri, 27 Oct 2023 02:18:10 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Buyrjw4c3VCVp4RBr6lDsE4+pNXOHWpUPEKxjLp2U5dgwcImGURAdKTi0BQ8vwWB39zNLAr1MoXEoygFQitwmFTxgoOL/j8KUnPYaP0RY0llpiJIBdyw6jVwRZo/aCRuAzLVAPCRsCtGOb0r6XXvWf2+K9dFOPcU1foxCzXiRSc9+EFQo39yS2zsTVmeaH1Id6mKxMUTOgU1q+xM542eT5u7qVWUKG5IvzuPXGJmI7OcNl7bBQvLx2nCh/94hZNIV0B25RS8Kk7geDX09ud/FzTMONHYamH1PgcJ6Tg7WQiMbxdT2iSXSuPMW4quiaPw1Y+Q/B4Z5SXOXfBkIjezdg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=KHO0hzwDWe3cGlLH59v0Wa7asO2/TZI9YH8InFhYvv4=; b=cg5/jt1OazuYRVK/fjhw3GQzz4WNHWPjVoW/jVui/MQlUO5SWQAKIgZ6QezNHoe/XUrKeLxeGM/Jb0W39vLnuxguSRQkFNgjOdhYYI/iRKkEO9rgsWZw7/559YRnzHjTgviGVBICY0SjaMqDUyX1lVHyUdWx9ODcsHVbsU9b1owfiTAtJLEnSWr/NJpkSKLBeJh96hzEgXNLVmPFdf0QYyOSsQgRWa5CYvx2rFAuSm0Hfw4eiQ0WUGdHR0jJ1160GUaHnYosjiSD54T9nuYkd/KSkHcILTM7+81qz+23QPl1egXLYp/bFB3N4nQA6gOYgpX+IMONvMO23PK7xL63kg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=KHO0hzwDWe3cGlLH59v0Wa7asO2/TZI9YH8InFhYvv4=; b=KsODgr9DH+kpbOY50qXqVqyUVFmvmnLNyGDbYEGtRtZ6o7jNCqBU1sjyTdADPST8e9KvrJJ+5DyMdFsnRQ/fJlZonIEgl/KOOjunozGCzG2KpImgdOwKjNuMi5IeQokcCnDVYT2E0n+BaNAknzS44lDrq3xm8WtiBe1Vsy7XtAM= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; Received: from CH2PR12MB4294.namprd12.prod.outlook.com (2603:10b6:610:a9::11) by SJ0PR12MB6760.namprd12.prod.outlook.com (2603:10b6:a03:44c::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6907.33; Fri, 27 Oct 2023 00:18:08 +0000 Received: from CH2PR12MB4294.namprd12.prod.outlook.com ([fe80::2569:edb2:670f:816f]) by CH2PR12MB4294.namprd12.prod.outlook.com ([fe80::2569:edb2:670f:816f%6]) with mapi id 15.20.6933.019; Fri, 27 Oct 2023 00:18:08 +0000 Message-ID: Date: Fri, 27 Oct 2023 01:18:03 +0100 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] testpmd: fix early exit from signal Content-Language: en-US To: Stephen Hemminger , dev@dpdk.org Cc: david.marchand@redhat.com References: <20231026171133.250715-1-stephen@networkplumber.org> From: Ferruh Yigit Autocrypt: addr=ferruh.yigit@amd.com; keydata= xsFNBGJDD3EBEAC/M7Tk/DfQSmP1K96vyzdhfSBzlCaGtcxNXorq4fALruqVsD3oi0yfyEz9 4YN8x7py0o9EL8ZdpOX0skc0AMCDAaw033uWhCn0GLMeGRKUbfOAPvL6ecSDvGD7CJIO9j0J eZUvasBgPdM/435PEr9DmC6Ggzdzt8IuG4PoLi5jpFSfcqxZFCCxLUDEo/w0nuguk2FTuYJg B2zEZ4JTBZrw7hIHiFh8D8hr6YA6a5uTofq1tr+l048lbtdFUl8TR0aIExVzE4Z8qKZlcE+9 RQaewjK5Al1jLE4sHdmd3GN+IvgDF3D/fLsi25SKJDeGSdeHkOmaX0qGeM4WKIfU6iARRCiQ N3AmBIxZ/A7UXBKLaOyZ+/i3sE6Wb53nrO4i8+0K2Qwyh6LjTeiJAIjYKN43ppxz3DaI+QwQ vI+uyHr4Gg0Da9EPPz/YyKauSeOZCfCB5gIfICO0j6x0SCl8uQ2nLpjxcZkf0gjcwUzP3h+S 3x6NfDji9YEij0zczW/dcSpGgZ6vsFpPrtnP9ZXy6J53yp0kJtOJoOlkEFFdU2yCZnCDseum CoudmGLZVvS0/DzHDJejq+3kK3FDGktZBOxZIIpal+nFqS7lVgOZc4+huVv3jyhzoAUOEyXA XK5j6o7g8STUY+z33QNnHpdLvecMwuzmvqy0jR54yAbZ64mB9QARAQABzSNGZXJydWggWWln aXQgPGZlcnJ1aC55aWdpdEBhbWQuY29tPsLBlwQTAQgAQQIbAwULCQgHAgYVCgkICwIEFgID AQIeAQIXgAIZARYhBEm7aYjps5XGsPHCElRTPtCKKm/6BQJjb9DJBQkC+3/YAAoJEFRTPtCK Km/6d94P/irGq3mPa7LamXMIioQ8i6ppMSjpr8g+SxH9RnzbmoUjUY6hV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.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-ClientProxiedBy: FR3P281CA0057.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:4b::8) To CH2PR12MB4294.namprd12.prod.outlook.com (2603:10b6:610:a9::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CH2PR12MB4294:EE_|SJ0PR12MB6760:EE_ X-MS-Office365-Filtering-Correlation-Id: ca978000-88b3-4c23-f228-08dbd6823252 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: a5zQ5Df6HRxwOgjnYBanekj/6hO+khLKmdc4JYDx8CZx/4KeQLRsdv2lrNOl3YDBx93toIOt2yYB3ZDmtsFkT75t4RRwgJLejxiuoA4B3ZVn2Qi+CBJKK3Yf79i6qoEYWP4xPtwqODJM7sJyhhnPsDaTFIbHnNDIcSLMYJvnq34AYN5uN4n/KneH9eJhdOIcx5aeliQk+NpSeKZdzQoKwvtOnwgNoCq9mxxsKSgDviOy+7OWkbTJkO3zEHg+1G1YNfhkut9tg369vwmZc4wkvwJI5fjZnTU+s4nMz4uJiOsHDi0mwbKj3lNfu0vGmLoHKJoMt0Pi4mqLBY0Qc/TdYd0l1jQ1QVE/5Cmo78NDjz1Hu4fm8xOTeB5rmV+fMLQpqyOTbHpf8W4VVN6UFA/fL3JlONI7LaiPuySLF5Uk37emdT2qHRJ8RvByz+k2Y4ASWqGQj/1y2GfriSW3N4SInu/JJBEqx3xQ5eVUat0cEzfJxakS19orNUsuOjmDrusdd4mQmgFyRFTM3naQ5aTIogYXCfajYShqguwFXWAQpOZkJKatx85O9+CdZiUQ4lxrx2Vu4pS3sX1I7tieftaduJ2Eioc0LSPud3B263RqxTqExcuKciDhnoTOiZZxOwjbFsoSf+ohA/EOmT6Cry6tlg== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:CH2PR12MB4294.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(396003)(376002)(39860400002)(346002)(136003)(366004)(230922051799003)(64100799003)(451199024)(1800799009)(186009)(6666004)(26005)(53546011)(2616005)(6512007)(6506007)(38100700002)(4744005)(478600001)(2906002)(6486002)(44832011)(4326008)(41300700001)(8676002)(8936002)(31696002)(66476007)(316002)(66946007)(36756003)(86362001)(66556008)(5660300002)(31686004)(43740500002)(45980500001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?TWJ2WXI1ZCs3RVZweWJVdGl3WVV3REk5b1BvZjE5QW8wbllqRW0yK0VFOFl1?= =?utf-8?B?bmJ5TVRraUtCckFvNmNnWmd3QitIRmV6TUFobFkxVUdKOGxiNmp3Nk8wajll?= =?utf-8?B?MEREeTFxaHM4bFE1c0QrT0NCS3BYdnoweDU1VWMrSDNVRFVxTWVaNVVsN2dC?= =?utf-8?B?QWlEaTAvOHhHcjNqaitzdzVMKzRFeWMxWU1hZ3g5V2Nsanp3cUpuTlJvc0Fz?= =?utf-8?B?cjNob1BjYk9QTExBazQ4QXVFUUgxN0dBNW1Ud0ZPMjF6bStNYVhnSVh6MCtL?= =?utf-8?B?NHQ5T0pSUHh1R3JoanVaZTdUMTZiQjBLVnp1b3BRT0Y4L1A0TExySS91RXln?= =?utf-8?B?ZUxaZ283YlE2QVZhemt4bEZYSnZFK3k5dU8vTzVrU205T25LU2tUMVBRb0hu?= =?utf-8?B?TDNqOWVRZ25LdkpqdnNRVTRVbFVFdm1jUUJDR1pGeVBlT2tiVEMvWDNFdGM3?= =?utf-8?B?TndSRlRrMjF5UXZ6RFpZZEJUb2h4aDZDR3Y4OFhZOXNIL0xIeGNtTW1nRyty?= =?utf-8?B?NC80OEVKanh1UVZ1dGlacnMxVXc2anZqMU1aYTY4eFNkZ1g5VnlVWlg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Y4c2h2T0JmMjVBUW1MS1FmVkFC?= =?utf-8?B?cVRDUGxSelUwNVkrR0pqeStSSnd3SFlyMExLcCt2SGR0WmVXWFdoVElrNGk1?= =?utf-8?B?dmMweHhIS0kwNG5YMlJ5eFhkTzdwMFMzeldyc0JMZklvSDZiUFpPTGdOWERP?= =?utf-8?B?aFVITGQwQkVlN0VmVUpzdWRSWUdsU01rQkZkL200TjdSaE9adE1ENEtPVTh5?= =?utf-8?B?VU1wNjU3N3NXaUEwL2JnSVYyVmxSRmI3WEc2aWhoSzlUbkNaeUlReW42WDNL?= =?utf-8?B?NS9sNnFkVEN3eERyczh4b2FxZFJ3MWJGNElmUk91RytaYXdudXkzczVDY0tC?= =?utf-8?B?ZUpaZTRmdDl0cW5FeVFvMmM0bnJ5ZUhKMU1WMVlKcmhkRHF3Z0RsdDlxMXdC?= =?utf-8?B?aXBrUHpZQmFrMUpabVNFcjlTazJ3U3hXUjA4dnhweG9OeWpseUlrZ2t5b3lB?= =?utf-8?B?NTRhUEd1L3FxaXVhUFNCMnhoTkEza0hGRXQweFc3bDY1MzNWYit6Nlpsb2ZF?= =?utf-8?B?MzRTTzhxejB5eHZJeUkwN0lIOHZYNW1tV1IwOG9ra0c3QW82ZEZCNDRwajBL?= =?utf-8?B?TzBXM0QzOWV0RnlMNktQR0NnN1h0REorRmJ3c0dsemR5L3ZVWUpuWXdMRTlU?= =?utf-8?Q?z3hU=3D?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: ca978000-88b3-4c23-f228-08dbd6823252 X-MS-Exchange-CrossTenant-AuthSource: CH2PR12MB4294.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Oct 2023 00:18:08.3875 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: fOc8As/VAoDKSL1UHj58CSpB411D6Mm6FGtPluGoeg5jm8rKPMX4P8LhOfgVJwAZ X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ0PR12MB6760 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 On 10/26/2023 6:11 PM, Stephen Hemminger wrote: > Other signals may occur causing read to get interrupted. > Loop until quit flag is set by signal, a character is entered, > or end of file. This fixes bug where testpmd would exit early > because of signal used by TAP device. > > Bugzilla ID: 1305 > Fixes: 0fd1386c30c3 ("app/testpmd: cleanup cleanly from signal") > > Signed-off-by: Stephen Hemminger > Acked-by: Ferruh Yigit