cpipe: prevent possible sleep during poll file operiation
Signed-off-by: Tal Shorer <tal.shorer@gmail.com>