From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf0-f178.google.com (mail-pf0-f178.google.com [209.85.192.178]) by dpdk.org (Postfix) with ESMTP id 95C1E69C8 for ; Wed, 30 Dec 2015 18:35:03 +0100 (CET) Received: by mail-pf0-f178.google.com with SMTP id e65so91913999pfe.1 for ; Wed, 30 Dec 2015 09:35:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; bh=NpICTFNksPBJqqcSsnMo11YbxSRJI77BjKRaFXDKn0w=; b=kP72fbN/NvI/rL/VyCbS6Fg4J7zyG7xyeiVUCZlQlqp4UfTPbENmWNTCL77WmLxaCn YkO0HOlAfJsMvrpX8bpwt2uFvGhDLKhdpEpY5/hN8EenXCCtLi6JkhM8vC/pVCcrOToM E4A+cPeng+GyVsa2DCLNr9a7OJ3TQJOeJmG95DSDvn3D7vZdGUiCofmLgCiszAbq7F2k YkOjTfSOOOtCG5t+1cCLP8Z/wm9nkWV+CI/ABW6H098/sPf7dVbX3wnK1LQ9isoZ8cWX f75mF8ypns8nD5K45AmWnBqZuUt5YAQQxRhEMt7z0O8QznuwwtBKRetYilZslavyeVkC NPgg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-type:content-transfer-encoding; bh=NpICTFNksPBJqqcSsnMo11YbxSRJI77BjKRaFXDKn0w=; b=bDpKlfYaQV8/n9Pe+l8EzKeeJJi+1UeHnY1tsF/S0cyZoi7kzBP0NAtJzstrcsH7oB Giq7cItiDXedHLxPKppzwpAhjfrlTcnQ+pwghUZA1RBswMUQ+0fWERHLAMQpNsi7MR1R GEgxJ9ut1Wqoi6t4xVVLgAZWA4PYsjZXiefiXkYBTDn6yItKXQKXzOS/IApuNRiN0ZO4 V6lYOG5j+KNKYKo943rri/cnnrnz0AF4juEo972C6GlxCFvGS3lOElraD5E9yM4JL4jm UJoEGWORWZguD4pPa3AAnypopEGnKGUkH4dGb0vRjJ9allEHzKwMZ+spopDU9BIk3U/X AT8g== X-Gm-Message-State: ALoCoQnKigo3AuCp653cqYuUsVIx8w2ZyeGD1FqhN+J8nR+pL2+zF3W4k38HTSv/Ha8dRYfRR5It4zbNwrad0SWTI5KLD1w05A== X-Received: by 10.98.1.138 with SMTP id 132mr63303229pfb.0.1451496902771; Wed, 30 Dec 2015 09:35:02 -0800 (PST) Received: from xeon-e3 (static-50-53-82-155.bvtn.or.frontiernet.net. [50.53.82.155]) by smtp.gmail.com with ESMTPSA id fi16sm22920106pac.12.2015.12.30.09.35.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 30 Dec 2015 09:35:02 -0800 (PST) Date: Wed, 30 Dec 2015 09:35:11 -0800 From: Stephen Hemminger To: Zhihong Wang Message-ID: <20151230093511.19c3ec4c@xeon-e3> In-Reply-To: <1451352032-105576-3-git-send-email-zhihong.wang@intel.com> References: <1451011032-83106-1-git-send-email-zhihong.wang@intel.com> <1451352032-105576-1-git-send-email-zhihong.wang@intel.com> <1451352032-105576-3-git-send-email-zhihong.wang@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: dev@dpdk.org Subject: Re: [dpdk-dev] [PATCH v3 2/3] examples/l2fwd: Handle SIGINT and SIGTERM in l2fwd X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Dec 2015 17:35:04 -0000 On Mon, 28 Dec 2015 20:20:31 -0500 Zhihong Wang wrote: > + /* exit with the expected status */ > + if (force_quit) { > + signal(signo_quit, SIG_DFL); > + kill(getpid(), signo_quit); This is really not necessary. Most other programs don't do this.