Have syswrite retry on EAGAIN or ECHILD

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16550 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2013-06-05 14:04:34 +00:00
parent 8d855e9e20
commit f930deea97

View File

@ -2010,7 +2010,9 @@ sub send_pending_responses {
$blocks += 1;
}
foreach (0..$blocks) {
syswrite($sock,$resp,4096,$_*4096);
do {
syswrite($sock,$resp,4096,$_*4096);
} while (($! == EAGAIN) or ($! == ECHILD));
}
};
}