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:
parent
8d855e9e20
commit
f930deea97
@ -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));
|
||||
}
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user