NIS lookups fails for getpwuid in presense of repeated signal event

Solution Verified - Updated -

Issue

  • A program doing a kind of profiling of itself using alarm()/SIGALRM each second, gets stuck in getpwuid() and similar calls trying to get UID which is in NIS.
  • Whenever there is an UDP packet loss, ALRM signal arrives while the getpwuid() call is waiting in poll() for a  reply from NIS and getpwuid never returns.

Environment

  • Red Hat Enterprise Linux 5
  • NIS

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content