You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by "Wang, Pin-Chieh" <Pi...@COMPAQ.com> on 2001/02/13 20:55:04 UTC

NISPlus-0.06-alpha problem

Hi,
I recently build Apache_1.3.14 with Mod_perl-1.24_01 on Solaris system
when I testing NIS+ portion I got terminal hung in Module Table.pm

The code actually hung is in sub colnames. I also cut that portion onto
here. 
The line that atually waitting for return is the bolded blue line(which I
don't have a clue what it is doing.)
I was using interactive debugger to be able to isloate to this point.

Is there any person can point me in the right direction?

I'll appreciate any help

Thanks,

PC


sub colnames
{
  my($me) = shift;
  my($ret, $res);

  if (!defined($me->{'colnames'}))
  {
    ($ret, $res) = Net::NISPlus::table_info($me->fullPath);
    if ($ret != 0)
    {
      Warning("colnames error: ", niserror($ret), "\n");
      return ();
    }
    else
    {
      $me->{'colnamesarr'} = $res->{'ta_cols'};
      foreach ($[..$#{@{$me->{'colnamesarr'}}})
      {
        $me->{'colnameshash'}->{$me->{'colnamesarr'}->[$_]} = $_;
      }
    }
  }
  return(@{$me->{'colnamesarr'}}) if wantarray;
  return($me->{'colnameshash'});
}