diff --git a/xCAT-server/sbin/xcatd b/xCAT-server/sbin/xcatd index 84b193a8d..5f3144a43 100755 --- a/xCAT-server/sbin/xcatd +++ b/xCAT-server/sbin/xcatd @@ -1990,7 +1990,7 @@ sub service_connection { my $bytesread; do { $bytesread=sysread($sock,$line,65536,length($line)) } while ($bytesread); if (length($line)==0) { - if (not defined $bytesread and $! == EAGAIN) { next; } # + if (not defined $bytesread and ($! == EAGAIN or $! == ECHILD)) { next; } # ECHILD makes no sense, but some platform does it last; } $flags=fcntl($sock,F_GETFL,0); @@ -2145,7 +2145,7 @@ sub send_pending_responses { foreach (0..$blocks) { do { syswrite($sock,$resp,4096,$_*4096); - } while ($! == EAGAIN); + } while (($! == EAGAIN) or ($! == ECHILD)); } }; }