[PATCH 1/6] perf tools: Handle EINTR error for readn/writen

2014-04-29 Thread Jiri Olsa
From: Namhyung Kim Those readn/writen functions are to ensure read/write does I/O for a given size exactly. But ion() - its implementation - does not handle in case it returns prematurely due to a signal. As it's not an error itself so just retry the operation. Signed-off-by: Namhyung Kim

[PATCH 1/6] perf tools: Handle EINTR error for readn/writen

2014-04-29 Thread Jiri Olsa
From: Namhyung Kim namhy...@kernel.org Those readn/writen functions are to ensure read/write does I/O for a given size exactly. But ion() - its implementation - does not handle in case it returns prematurely due to a signal. As it's not an error itself so just retry the operation.