Subject: stat() hangs indefinately on NFS when server down
On Solaris 2.4, I have a process that blocks indefinately when it
does a stat() or access() call on a file that is on an NFS partition,
and the server is down. (The mount is "rw,hard,intr".)
How can I prevent this indefinate blocking? Forcing the mount to
be done in a specific way (e.g. always "soft") is not an option;
I would like to find something that works irrespective of now the
NFS mount is done. Have tried using signal()/alarm(), but the signal
only gets delivered after the NFS server comes back.
Thanks.
--
Yong Chen _/_/_/_/_/
1445 Lakeside Estates Dr. #1617 _/_/ _/
Houston, Texas 77042 _/_/ _/_/ _/_/_/
Phone: (Day) +1 713 918-1310, (Night) +1 713 952-1339 _/_/ _/ _/_/