From patchwork Thu Jun 10 12:00:50 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yevgeny Kliteynik X-Patchwork-Id: 105376 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o5AC1efI018257 for ; Thu, 10 Jun 2010 12:01:40 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758907Ab0FJMBQ (ORCPT ); Thu, 10 Jun 2010 08:01:16 -0400 Received: from mail.mellanox.co.il ([194.90.237.43]:48907 "EHLO mellanox.co.il" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1758903Ab0FJMBL (ORCPT ); Thu, 10 Jun 2010 08:01:11 -0400 Received: from Internal Mail-Server by MTLPINE1 (envelope-from kliteyn@dev.mellanox.co.il) with SMTP; 10 Jun 2010 15:01:51 +0300 Received: from [10.4.1.29] ([10.4.1.29]) by mtlexch01.mtl.com with Microsoft SMTPSVC(6.0.3790.3959); Thu, 10 Jun 2010 15:01:00 +0300 Message-ID: <4C10D3F2.700@dev.mellanox.co.il> Date: Thu, 10 Jun 2010 15:00:50 +0300 From: Yevgeny Kliteynik User-Agent: Thunderbird 1.5.0.5 (X11/20060719) MIME-Version: 1.0 To: Sasha Khapyorsky CC: Linux RDMA Subject: [Patch v2] opensm/main.c: force stdout to be line-buffered X-OriginalArrivalTime: 10 Jun 2010 12:01:00.0330 (UTC) FILETIME=[97B080A0:01CB0894] X-TM-AS-Product-Ver: SMEX-8.0.0.1181-6.000.1038-17436.007 X-TM-AS-Result: No--5.540700-8.000000-31 X-TM-AS-User-Approved-Sender: No X-TM-AS-User-Blocked-Sender: No Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Thu, 10 Jun 2010 12:01:40 +0000 (UTC) diff --git a/opensm/opensm/main.c b/opensm/opensm/main.c index 0093aa7..6e6c733 100644 --- a/opensm/opensm/main.c +++ b/opensm/opensm/main.c @@ -618,6 +618,9 @@ int main(int argc, char *argv[]) {NULL, 0, NULL, 0} /* Required at the end of the array */ }; + /* force stdout to be line-buffered */ + setvbuf(stdout, NULL, _IOLBF, 0); + /* Make sure that the opensm and complib were compiled using same modes (debug/free) */ if (osm_is_debug() != cl_is_debug()) {