bug-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSOpenPanel / nfs_wait


From: Richard Frith-Macdonald
Subject: Re: NSOpenPanel / nfs_wait
Date: Sun, 10 Mar 2002 06:38:56 +0000

On Sunday, March 10, 2002, at 06:10 AM, Pascal Bourguignon wrote:


On Linux, when  opening a NSOpenPanel, if there is  some NFS mount for
which the server is down, the GNUstep application waits on nfs_wait.

Would it be  possible to use non blocking I/O  to scan the directories
in NSOpenPanel?

That sort of behavior is supposed to be handled by the NFS system ... when
the remote filesystem is set up you can configure it to be 'soft' mounted
and set a timeout.  So the application is *supposed* to wait until the
configured limit ... rather than giving up on a slow system.

While you could write some sort of non-blocking mechanism for scanning
directories, getting it to work (ie not miss files/directories) on slow
systems would be quite tricky.  If you would like to submit some code to
try to do it, I'd be happy to look at it.

To get the same effect as a naive implementation ... mount your nfs
filesystems as soft, with a timeout of 1 and a retrans of 1
That should (though I haven't tested it) give up on an nfs directory
after 0.1 seconds.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]