1
0
mirror of https://github.com/golang/go synced 2024-11-21 23:54:40 -07:00

remove 8.out before creating it.

hope this will work around Mac NFS bug
where writing to an 8.out that has crashed
recently sometimes wedges NFS.

R=r
DELTA=3  (3 added, 0 deleted, 0 changed)
OCL=32906
CL=32908
This commit is contained in:
Russ Cox 2009-08-07 15:22:09 -07:00
parent 39b12e2dcb
commit 002623704f
3 changed files with 3 additions and 0 deletions

View File

@ -252,6 +252,7 @@ main(int argc, char *argv[])
dtype = 4;
if(outfile == 0)
outfile = "5.out";
unlink(outfile);
cout = create(outfile, 1, 0775);
if(cout < 0) {
diag("%s: cannot create", outfile);

View File

@ -337,6 +337,7 @@ main(int argc, char *argv[])
edatap = P;
pc = 0;
dtype = 4;
unlink(outfile);
cout = create(outfile, 1, 0775);
if(cout < 0) {
diag("cannot create %s", outfile);

View File

@ -306,6 +306,7 @@ main(int argc, char *argv[])
edatap = P;
pc = 0;
dtype = 4;
unlink(outfile);
cout = create(outfile, 1, 0775);
if(cout < 0) {
diag("cannot create %s", outfile);