From patchwork Fri Nov 25 14:06:02 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Uvarov X-Patchwork-Id: 84133 Delivered-To: patch@linaro.org Received: by 10.140.20.101 with SMTP id 92csp133161qgi; Fri, 25 Nov 2016 06:07:06 -0800 (PST) X-Received: by 10.55.220.69 with SMTP id v66mr6827309qki.264.1480082826014; Fri, 25 Nov 2016 06:07:06 -0800 (PST) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id r44si18029158qtc.201.2016.11.25.06.07.05; Fri, 25 Nov 2016 06:07:05 -0800 (PST) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=pass (p=NONE dis=NONE) header.from=linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id A5A5B60B0F; Fri, 25 Nov 2016 14:07:05 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL autolearn=disabled version=3.4.0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id 3AA3A60B0F; Fri, 25 Nov 2016 14:06:55 +0000 (UTC) X-Original-To: lng-odp@lists.linaro.org Delivered-To: lng-odp@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id D897362DA7; Fri, 25 Nov 2016 14:06:50 +0000 (UTC) Received: from mail-lf0-f42.google.com (mail-lf0-f42.google.com [209.85.215.42]) by lists.linaro.org (Postfix) with ESMTPS id DD6F76069F for ; Fri, 25 Nov 2016 14:06:46 +0000 (UTC) Received: by mail-lf0-f42.google.com with SMTP id o141so51498734lff.1 for ; Fri, 25 Nov 2016 06:06:46 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=yhUEQ4CUUpq8IwvKjuPw8Isx/uCoK2pXov0r1jG3WNk=; b=d2jB8CofpAp5q0Si4gh6avxAtAK/MzJh75A3R3R/kfz2jyDgS+UQu0PU0zDdjSZkWl 8xUGWK4xg6sN/bleeXkPBQhsf+yXHNWZZ7TfwSvtO4x/fTwibqL+ZQOh5HzShU2Qqwwh sz6pTlyuesudvM3epiW7VmCtcxfs7s1PkutZQq0Jss8i5qY/fT9XEcc9i6wAimylGjG8 m5S8oUfk8Y1EHe+Rl2gQDecpfLVSFyqs5MzNcYZQG525SCbr9FtmZrlcZuiUkAAvKgxr 7zgaTDPeKl5IwOS2Z1NcCpX4F/uyg1h9yCcHDNpF80kOgbspLsqznRxrZPFQgFfOw9A0 jf4Q== X-Gm-Message-State: AKaTC02YG5gPgP3ewNVmwP65+fh16eaE1BVrpET5s49ZtKiLH5kbNu+JkkYIzEyBy0wTgyfwEyA= X-Received: by 10.46.77.92 with SMTP id a89mr3986698ljb.28.1480082805706; Fri, 25 Nov 2016 06:06:45 -0800 (PST) Received: from localhost.localdomain (ppp46-138-205-38.pppoe.spdop.ru. [46.138.205.38]) by smtp.gmail.com with ESMTPSA id 29sm9339056lft.43.2016.11.25.06.06.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 25 Nov 2016 06:06:45 -0800 (PST) From: Maxim Uvarov To: lng-odp@lists.linaro.org Date: Fri, 25 Nov 2016 17:06:02 +0300 Message-Id: <1480082762-12164-1-git-send-email-maxim.uvarov@linaro.org> X-Mailer: git-send-email 2.7.1.250.gff4ea60 Subject: [lng-odp] [PATCH] test: linux-gen: fix termination in mmap_vlan_ins X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: "The OpenDataPlane \(ODP\) List" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" exit variable has to be volatile to be visible from thread. Without that background process is not killed with default optimization level. Signed-off-by: Maxim Uvarov --- test/linux-generic/mmap_vlan_ins/mmap_vlan_ins.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.7.1.250.gff4ea60 Reviewed-by: Bill Fischofer diff --git a/test/linux-generic/mmap_vlan_ins/mmap_vlan_ins.c b/test/linux-generic/mmap_vlan_ins/mmap_vlan_ins.c index 0682d2d..b91eb53 100644 --- a/test/linux-generic/mmap_vlan_ins/mmap_vlan_ins.c +++ b/test/linux-generic/mmap_vlan_ins/mmap_vlan_ins.c @@ -19,7 +19,7 @@ #define MAX_PKT_BURST 32 #define MAX_WORKERS 1 -static int exit_thr; +static volatile int exit_thr; static int g_ret; struct {