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 [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
