From patchwork Wed Mar 3 08:26:46 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yevgeny Kliteynik X-Patchwork-Id: 83299 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 o238RLC6022974 for ; Wed, 3 Mar 2010 08:27:21 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751325Ab0CCI1V (ORCPT ); Wed, 3 Mar 2010 03:27:21 -0500 Received: from mail.mellanox.co.il ([194.90.237.43]:36160 "EHLO mellanox.co.il" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751267Ab0CCI1U (ORCPT ); Wed, 3 Mar 2010 03:27:20 -0500 Received: from Internal Mail-Server by MTLPINE1 (envelope-from kliteyn@dev.mellanox.co.il) with SMTP; 3 Mar 2010 10:27:14 +0200 Received: from [10.4.1.29] ([10.4.1.29]) by mtlexch01.mtl.com with Microsoft SMTPSVC(6.0.3790.3959); Wed, 3 Mar 2010 10:27:13 +0200 Message-ID: <4B8E1D46.4090106@dev.mellanox.co.il> Date: Wed, 03 Mar 2010 10:26:46 +0200 From: Yevgeny Kliteynik User-Agent: Thunderbird 1.5.0.5 (X11/20060719) MIME-Version: 1.0 To: Sasha Khapyorsky CC: Linux RDMA Subject: opensm/main.c: foce stdout to be line-buffered X-OriginalArrivalTime: 03 Mar 2010 08:27:13.0689 (UTC) FILETIME=[53852890:01CABAAB] X-TM-AS-Product-Ver: SMEX-8.0.0.1181-6.000.1038-17226.004 X-TM-AS-Result: No--4.004600-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]); Wed, 03 Mar 2010 08:27:22 +0000 (UTC) diff --git a/opensm/opensm/main.c b/opensm/opensm/main.c index f9a33af..5ea65dd 100644 --- a/opensm/opensm/main.c +++ b/opensm/opensm/main.c @@ -613,6 +613,9 @@ int main(int argc, char *argv[]) {NULL, 0, NULL, 0} /* Required at the end of the array */ }; + /* force stdout to be line-buffered */ + setlinebuf(stdout); + /* Make sure that the opensm and complib were compiled using same modes (debug/free) */ if (osm_is_debug() != cl_is_debug()) {