[PATCH V2 3/5] trace-cmd: Use poll(2) to wait for a message

2013-09-12 Thread Yoshihiro YUNOMAE
Use poll(2) to wait for a message. If a client/server cannot send a message for any reasons, the current server/client will wait in a blocking read operation. So, we use poll(2) for avoiding remaining in a blocking state. Signed-off-by: Yoshihiro YUNOMAE --- trace-msg.c | 42

[PATCH V2 3/5] trace-cmd: Use poll(2) to wait for a message

2013-09-12 Thread Yoshihiro YUNOMAE
Use poll(2) to wait for a message. If a client/server cannot send a message for any reasons, the current server/client will wait in a blocking read operation. So, we use poll(2) for avoiding remaining in a blocking state. Signed-off-by: Yoshihiro YUNOMAE yoshihiro.yunomae...@hitachi.com ---