change the timeout of NFS link; add copy function in finsh shell.

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1138 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
bernard.xiong
2010-11-29 11:32:24 +00:00
parent a7bf529851
commit fca005fe0c
2 changed files with 45 additions and 1 deletions

View File

@@ -71,7 +71,7 @@ CLIENT *clnt_create (const char *hostname, const unsigned long prog,
tv.tv_usec = 0;
client = clntudp_create(&sin, prog, vers, tv, &sock);
if (client == NULL) return NULL;
tv.tv_sec = 25;
tv.tv_sec = 1;
clnt_control(client, CLSET_TIMEOUT, (char*)&tv);
}
else