From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 421765A71 for ; Wed, 20 Jan 2016 17:45:26 +0100 (CET) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga101.fm.intel.com with ESMTP; 20 Jan 2016 08:45:25 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.22,321,1449561600"; d="scan'208";a="637104989" Received: from fmsmsx106.amr.corp.intel.com ([10.18.124.204]) by FMSMGA003.fm.intel.com with ESMTP; 20 Jan 2016 08:45:25 -0800 Received: from fmsmsx158.amr.corp.intel.com (10.18.116.75) by FMSMSX106.amr.corp.intel.com (10.18.124.204) with Microsoft SMTP Server (TLS) id 14.3.248.2; Wed, 20 Jan 2016 08:45:24 -0800 Received: from fmsmsx113.amr.corp.intel.com ([169.254.13.221]) by fmsmsx158.amr.corp.intel.com ([169.254.15.91]) with mapi id 14.03.0248.002; Wed, 20 Jan 2016 08:45:24 -0800 From: "Wiles, Keith" To: Matthew Hall , "dev@dpdk.org" Thread-Topic: [dpdk-dev] [PKTGEN] fixing weird termio issues that complicate debugging Thread-Index: AQHRU59L/5nKQ1yupESU8yNkuJ/FmZ8EvjGA Date: Wed, 20 Jan 2016 16:45:23 +0000 Message-ID: References: <569F2A07.9000606@mhcomputing.net> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.254.0.245] Content-Type: text/plain; charset="utf-8" Content-ID: <8918B492537F6441A6D5170E8444D5A5@intel.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PKTGEN] fixing weird termio issues that complicate debugging 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, 20 Jan 2016 16:45:26 -0000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