From 8d855e9e20407d68e5f0ac8c0988fec494eacf45 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Wed, 5 Jun 2013 14:04:28 +0000 Subject: [PATCH] Have xcatd recognize EAGAIN and ECHILD as equivalent in syswrite due to flawed platform behavior git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16549 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/sbin/xcatd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xCAT-server/sbin/xcatd b/xCAT-server/sbin/xcatd index d5f1b7f3f..5ed722bb4 100755 --- a/xCAT-server/sbin/xcatd +++ b/xCAT-server/sbin/xcatd @@ -1857,7 +1857,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; } # last; } $flags=fcntl($sock,F_GETFL,0);