From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id 24DA58E63 for ; Wed, 20 Jan 2016 17:26:22 +0100 (CET) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga102.fm.intel.com with ESMTP; 20 Jan 2016 08:26:21 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.22,321,1449561600"; d="scan'208";a="637075082" Received: from fmsmsx106.amr.corp.intel.com ([10.18.124.204]) by FMSMGA003.fm.intel.com with ESMTP; 20 Jan 2016 08:26:20 -0800 Received: from fmsmsx155.amr.corp.intel.com (10.18.116.71) 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:26:20 -0800 Received: from fmsmsx113.amr.corp.intel.com ([169.254.13.221]) by FMSMSX155.amr.corp.intel.com ([169.254.5.129]) with mapi id 14.03.0248.002; Wed, 20 Jan 2016 08:26:20 -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/FmQ== Date: Wed, 20 Jan 2016 16:26:19 +0000 Message-ID: References: <569F2A07.9000606@mhcomputing.net> In-Reply-To: <569F2A07.9000606@mhcomputing.net> 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: <3A7F3BD651BA7041BB84DF4C2847B1ED@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: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