core: eintr-retry subprocess.communicate()

Signed-off-by: David Aguilar <davvid@gmail.com>