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 6B77D42DDE; Thu, 6 Jul 2023 01:35:48 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 41D5441156; Thu, 6 Jul 2023 01:35:48 +0200 (CEST) Received: from mail-oi1-f170.google.com (mail-oi1-f170.google.com [209.85.167.170]) by mails.dpdk.org (Postfix) with ESMTP id 622AE400D5 for ; Thu, 6 Jul 2023 01:35:47 +0200 (CEST) Received: by mail-oi1-f170.google.com with SMTP id 5614622812f47-3a37909a64eso203177b6e.1 for ; Wed, 05 Jul 2023 16:35:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20221208.gappssmtp.com; s=20221208; t=1688600147; x=1691192147; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=kqbETnsB2nfq2OHqvFDfa85pp6bn8vGeRukumrJnf6M=; b=bK2zr80ZQ/DSZvFJ2VLpztJco57g/x1U4nhgbXNyE8wpTW3zObxHi1YOHgd1EwBUQF jrE4lSzJ4LRvflQcSSIS3QKKeKxPaNE9P4rKWCKr6jEeCf1w657RQrN7+/gCL4Yjciqo 3KZiAGPF3Ti/j+0+IB/JzdsuzFbLedCLv5dBDFvVhLaUKeHHGVkmL2jWjCQke3t8iS5Y h87lwuUSG1G56jf+flcU3w9VRBrtnmYBHTgwL3yiXUNvqOzgaYneGovxXUMmUkYnFpj7 etaycv/jQhrSnoeLvs0Eui4kgjPyTeku/9diYz2O44aQSDO9zJMFhtNCLDJo2JM3/S4j OMng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688600147; x=1691192147; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=kqbETnsB2nfq2OHqvFDfa85pp6bn8vGeRukumrJnf6M=; b=B5G1+D2DcgNELO5yzIQw/v5qJnBbsJLHKpzwbNc0GU0bsqlegP7Em3iwLvj2eugA6n ljKgOCu+JBQCDEk+2o4TiZIu/ALTiYq58jvVnfk56HBOGflMEJ0H40cmGChsSJj8T3pC fdDKA9cwI+mm6bj28xLIySOUeLo4XPE/1W97nLiFo6q+YDYc+WyDg8YQ5AiBTvWRRMwN T3zcNbUfvVkkr7mLozExY/DfP4Xi4IVK0k3kyETHwi86HnTGz5OTjtljXrbXBsDAmjn5 sWUq3WcQfprs4dYvf9et1AXyJDHqz0w581kzQeAWl5FABAsNZooKMTUpJjztioG3bsVn LSkw== X-Gm-Message-State: ABy/qLavvcfkdjAuLu2IW22NvVCvsdSI6KMwQh93y0RfXYzuvFh7kxg/ 6JmAUunUsDHRjtQQc5R61ZTtMi9Lz774Z2v0Zmo= X-Google-Smtp-Source: APBJJlHyH0mKsnsIQRzt4bqDtwjl90lpNbU/+h2vmdvfW4B314JM/+GHyIJu09udIJea5J2lWeKHxw== X-Received: by 2002:aca:210c:0:b0:3a3:b98a:d7b3 with SMTP id 12-20020aca210c000000b003a3b98ad7b3mr95015oiz.15.1688600146814; Wed, 05 Jul 2023 16:35:46 -0700 (PDT) Received: from hermes.local (204-195-120-218.wavecable.com. [204.195.120.218]) by smtp.gmail.com with ESMTPSA id p13-20020aa7860d000000b0066a6059d399sm71699pfn.116.2023.07.05.16.35.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jul 2023 16:35:46 -0700 (PDT) Date: Wed, 5 Jul 2023 16:35:44 -0700 From: Stephen Hemminger To: rohit.raj@nxp.com Cc: Anatoly Burakov , dev@dpdk.org Subject: Re: [dpdk-dev] [PATCH v4 2/5] examples/multi_process: cleanup bus objects while terminating app Message-ID: <20230705163544.386195d8@hermes.local> In-Reply-To: <20201008153048.19369-2-rohit.raj@nxp.com> References: <20200826055233.26075-1-rohit.raj@nxp.com> <20201008153048.19369-1-rohit.raj@nxp.com> <20201008153048.19369-2-rohit.raj@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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 Thu, 8 Oct 2020 21:00:44 +0530 rohit.raj@nxp.com wrote: > +static void > +signal_handler(int signal) > +{ > + if (signal == SIGINT) > + rte_eal_cleanup(); NAK Call rte_eal_cleanup in signal handler is not safe. Need to set a flag and handle it in main code.