fix an issue about hardware discovery process: the sub process can not receive findme request immediately

This commit is contained in:
zhaoertao 2014-10-04 23:20:48 -07:00
parent c3f0760164
commit aea40b0226

View File

@ -936,6 +936,8 @@ unless ($pid_UDP) {
my $discoctl;
my $udpbroker;
socketpair($discoctl,$udpbroker,AF_UNIX,SOCK_STREAM,PF_UNSPEC);
$udpbroker->autoflush(1);
$discoctl->autoflush(1);
$pid_disco = xCAT::Utils->xfork;
if (!defined $pid_disco) {
xCAT::MsgUtils->message("S", "Unable to fork for UDP/TCP");