* ibv_asyncwatch and buffering
@ 2010-01-21 10:30 Håkon Bugge
[not found] ` <41C706F4-CB54-4F03-86BD-03F27302B128-U0mLk4xYmo8@public.gmane.org>
0 siblings, 1 reply; 2+ messages in thread
From: Håkon Bugge @ 2010-01-21 10:30 UTC (permalink / raw)
To: OFED mailing list
Hi,
It seems like ibv_asyncwatch defaults to standard libc behavior wrt. to buffering. That is, if you pipe the output of ibv_asyncwatch, no output happens, as the stdout is redirected to a pipe and block buffering is used by default.
One could a) use sprintf() and write() or b) force libc buffering to line-mode by means of setlinebuf(stdout).
That would make ibv_asyncwatch more useful in scripted environments.
Thanks,
Håkon
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: ibv_asyncwatch and buffering
[not found] ` <41C706F4-CB54-4F03-86BD-03F27302B128-U0mLk4xYmo8@public.gmane.org>
@ 2010-01-21 11:07 ` Or Gerlitz
0 siblings, 0 replies; 2+ messages in thread
From: Or Gerlitz @ 2010-01-21 11:07 UTC (permalink / raw)
To: Håkon Bugge; +Cc: OFED mailing list
Håkon Bugge wrote:
> That would make ibv_asyncwatch more useful in scripted environments
>
patch?
Or.
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-01-21 11:07 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-21 10:30 ibv_asyncwatch and buffering Håkon Bugge
[not found] ` <41C706F4-CB54-4F03-86BD-03F27302B128-U0mLk4xYmo8@public.gmane.org>
2010-01-21 11:07 ` Or Gerlitz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox