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:
parent
39b12e2dcb
commit
002623704f
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user