Hi All,
I have some code that is require to chdir(2) to a directory. If the chdir(2) fails, create it.
Now this directory is on an NFS mount. These are 'hard' linked!
If the remote NFS server is not running (for whatever reason), the code will hang on chdir. I've tried to use an alarm timeout around the chdir call, but this seems to be handled.
Does anyone suggest using select(2)? If so, whats the best way to obtain a file descriptor with which to wait on?
TIA, rotis23



LinkBack URL
About LinkBacks


