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. _______________________________________________ Bug-gnustep mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/bug-gnustep
