From ebf6b955be2a427e1cb816c4c02d1068e4b47c25 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Fri, 18 Apr 2008 19:15:26 +0000 Subject: [PATCH] -Fix problem where SIGPIPE wasn't exiting, fixes ghost plugin instances on client connection loss git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@1123 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server-2.0/sbin/xcatd | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/xCAT-server-2.0/sbin/xcatd b/xCAT-server-2.0/sbin/xcatd index 994e994ea..69059f4f2 100755 --- a/xCAT-server-2.0/sbin/xcatd +++ b/xCAT-server-2.0/sbin/xcatd @@ -693,7 +693,10 @@ sub dispatch_callback { print $dispatch_parentfd freeze($rsp); print $dispatch_parentfd "\nENDOFFREEZE6sK6xa\n"; yield; #This has to happen before next line could possibly work anyway - <$dispatch_parentfd>; #Block until parent acks data + my $parselect = new IO::Select; + $parselect->add($dispatch_parentfd); + $parselect->can_read(10); #block for up to 10 seconds before continuing + #<$dispatch_parentfd>; #Block until parent acks data } }