C
collinm
hi
in a c program, i copy often file on nfs
to see if i can see the nfs i do something like:
if((exist = stat(mnt_dir, &buf))==0){
if((fp = fopen(tmp_mnt_dir_www, "w"))!=NULL)
{
}
else
printf("problem\n");
}
my problem is: if nfs is not available, my program seem to block,
freeze a couple of second... is there a way to avoid that?
thanks
in a c program, i copy often file on nfs
to see if i can see the nfs i do something like:
if((exist = stat(mnt_dir, &buf))==0){
if((fp = fopen(tmp_mnt_dir_www, "w"))!=NULL)
{
}
else
printf("problem\n");
}
my problem is: if nfs is not available, my program seem to block,
freeze a couple of second... is there a way to avoid that?
thanks