process_utils: fix blocking behavior in Linux