From 7cae464cba1a293e17efef24b072c1c6f58574a4 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Tue, 22 May 2012 21:11:14 +0000 Subject: [PATCH] Close some filehandles that aren't needed git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12881 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/sbin/xcatd | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xCAT-server/sbin/xcatd b/xCAT-server/sbin/xcatd index 11253f2da..4c09351d1 100755 --- a/xCAT-server/sbin/xcatd +++ b/xCAT-server/sbin/xcatd @@ -1453,11 +1453,13 @@ sub dispatch_request { $dispatch_children++; $dispatched_children{$child}=1; $child_fdset->add($pfd); + close($parfd); next; } unless (defined $child) { $dispatch_cb->({error=>['Fork failure dispatching request'],errorcode=>[1]}); } + close($pfd); $SIG{CHLD}='DEFAULT'; $dispatch_parentfd = $parfd; my @prexcatdests=();